cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Previous Showing 51-60 of 77 results. Next

A133879 n modulo 9 repeated 9 times.

Original entry on oeis.org

1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3
Offset: 0

Views

Author

Hieronymus Fischer, Oct 10 2007

Keywords

Comments

Periodic with length 9^2=81.

Crossrefs

Programs

  • Mathematica
    Rest[Flatten[Table[Table[Table[n,{9}],{n,0,8}],{3}],1]]//Flatten (* Harvey P. Dale, Apr 15 2018 *)

Formula

a(n)=(1+floor(n/9)) mod 9.
a(n)=1+floor(n/9)-9*floor((n+9)/81).
a(n)=(((n+9) mod 81)-(n mod 9))/9.
a(n)=((n+9-(n mod 9))/9) mod 9.
G.f. g(x)=(1-x^9)(1+2x^9+3x^18+4x^27+5x^36+6x^45+7x^56+8x^63)/((1-x)(1-x^81)).
G.f. g(x)=(1-x^9)*sum{0<=k<8, (k+1)*x^(9*k)}/((1-x)(1-x^81)).
G.f. g(x)=(8x^81-9x^72+1)/((1-x)(1-x^9)(1-x^81)).

A133905 Least composite number m such that binomial(n+m,m) mod m = 1.

Original entry on oeis.org

4, 9, 25, 10, 26, 9, 9, 9, 6, 4, 4, 34, 34, 85, 289, 4, 4, 57, 87, 8, 8, 25, 25, 25, 134, 4, 4, 15, 15, 111, 111, 4, 4, 8, 8, 10, 10, 121, 121, 82, 86, 4, 4, 49, 49, 49, 49, 4, 4, 265, 68, 10, 10, 8, 8, 6, 9, 4, 4, 194, 194, 469, 249, 4, 4, 44, 44, 146, 146, 16, 16, 6, 6, 4, 4, 162
Offset: 1

Views

Author

Hieronymus Fischer, Oct 20 2007

Keywords

Examples

			a(1)=4, since binomial(1+4,4) mod 4 = 5 mod 4 = 1 and 4 is the minimal composite number with this property.
a(5)=26 because of binomial(5+26,26)=169911=6535*26+1, but binomial(5+k,k) mod k<>1 for all composite numbers <26.
		

Crossrefs

Programs

  • Mathematica
    lcn[n_]:=Module[{m=4},While[PrimeQ[m]||Mod[Binomial[n+m,m],m]!=1,m++];m]; Array[lcn,80] (* Harvey P. Dale, May 13 2022 *)
  • PARI
    a(n) = { my(m = 4, ok = 0); until (ok, if (! isprime(m) && (binomial(n+m, m) % m == 1), ok = 1, m++);); return (m);} \\ Michel Marcus, Jul 15 2013

A134335 Numbers such that the arithmetic mean of their prime factors (counted with multiplicity) is an integer, but not a prime.

Original entry on oeis.org

15, 35, 39, 42, 50, 51, 55, 65, 77, 78, 87, 91, 92, 95, 110, 111, 114, 115, 119, 123, 140, 141, 143, 155, 159, 161, 164, 170, 183, 185, 186, 187, 189, 201, 203, 204, 209, 215, 219, 221, 222, 225, 230, 235, 236, 242, 247, 258, 259, 264, 267, 284, 285, 287, 290
Offset: 1

Views

Author

Hieronymus Fischer, Oct 23 2007

Keywords

Examples

			a(1) = 15, since 15 = 3*5 and (3+5)/2 = 4 is not prime.
a(5) = 50, since 50 = 2*5*5 and (2+5+5)/3 = 4 is not prime.
		

Crossrefs

Programs

  • Mathematica
    fp[{a_,b_}]:=a*b;s={};Do[If[q=Total[fp/@FactorInteger[n]]/Total[Last/@FactorInteger[n]];IntegerQ[q]&&!PrimeQ[q],AppendTo[s,n]],{n,2,290}];s (* James C. McMahon, Apr 05 2025 *)

Extensions

Definition clarified by the author, May 06 2013

A135101 Digital sum (base the n-th prime) of n^n.

Original entry on oeis.org

1, 2, 3, 10, 15, 24, 55, 46, 71, 116, 101, 180, 213, 196, 205, 276, 307, 444, 337, 610, 621, 646, 687, 808, 985, 876, 921, 996, 1049, 1184, 1417, 1576, 1665, 1576, 2127, 1836, 2377, 1660, 2201, 2088, 2731, 2844, 2847, 2944, 3317, 3232, 3503, 3294, 3165
Offset: 1

Views

Author

Hieronymus Fischer, Dec 24 2007

Keywords

Examples

			a(2) = ds_prime(2)(2^2) = ds_3(4) = 1+1 = 2;
a(10) = ds_prime(5)(5^5) = ds_11(3125) = 2+3+9+1 = 15.
		

Crossrefs

Programs

  • Mathematica
    Table[Total[IntegerDigits[n^n, Prime[n]]], {n, 50}] (* G. C. Greubel, Sep 23 2016 *)
  • PARI
    a(n) = vecsum(digits(n^n, prime(n))); \\ Michel Marcus, Sep 24 2016

Formula

a(n) = ds_prime(n)(n^n), where ds_prime(n) = digital sum base the n-th prime.
a(n) = n^n - (prime(n)-1)*Sum{k>0} ( floor(n^n/prime(n)^k) ).

A135102 Digital sum (base the n-th prime) of Fibonacci(n).

Original entry on oeis.org

1, 1, 2, 3, 5, 8, 13, 3, 12, 27, 29, 36, 33, 41, 58, 51, 31, 64, 89, 45, 74, 83, 39, 168, 145, 193, 170, 129, 149, 104, 211, 289, 274, 175, 257, 252, 125, 161, 318, 347, 447, 316, 317, 285, 450, 107, 253, 648, 363, 301, 498, 409, 773, 522, 429, 515, 782, 649, 641
Offset: 1

Views

Author

Hieronymus Fischer, Dec 24 2007

Keywords

Examples

			a(2) = ds_prime(2)(Fib(2)) = ds_3(1) = 1;
a(10) = ds_prime(10)(55) = ds_29(55) = 1+26 = 27.
		

Crossrefs

Programs

  • Mathematica
    Table[Total[IntegerDigits[Fibonacci[n],Prime[n]]],{n,60}] (* Harvey P. Dale, May 05 2013 *)
  • PARI
    a(n) = vecsum(digits(fibonacci(n), prime(n))); \\ Michel Marcus, Sep 24 2016

Formula

a(n) = ds_prime(n)(Fib(n)), where ds_prime(n) = digital sum base the n-th prime.
a(n) = Fibonacci(n) - (prime(n)-1)*Sum{k>0} ( floor(Fibonacci(n)/prime(n)^k) ).

A135103 Digital sum (base the n-th prime) of n^3.

Original entry on oeis.org

1, 4, 3, 4, 5, 12, 7, 26, 25, 20, 41, 36, 37, 56, 63, 40, 41, 72, 61, 90, 117, 118, 113, 96, 73, 76, 99, 116, 89, 120, 181, 138, 169, 112, 251, 156, 109, 116, 57, 188, 35, 108, 87, 128, 181, 118, 83, 258, 129, 284, 179, 188, 317, 214, 231, 338, 273, 442, 311, 400, 253
Offset: 1

Views

Author

Hieronymus Fischer, Dec 24 2007

Keywords

Examples

			a(2)=ds_prime(2)(2^3)=ds_3(8)=2+2=4; a(6)=ds_prime(6)(6^3)=ds_13(216)=1+3+8=12.
		

Crossrefs

Programs

  • Mathematica
    Table[Total[IntegerDigits[n^3,Prime[n]]],{n,70}] (* Harvey P. Dale, Oct 21 2011 *)

Formula

a(n)=ds_prime(n)(n^3), where ds_prime(n)=digital sum base the n-th prime.
a(n)=n^3-(prime(n)-1)*sum{k>0, floor(n^3/prime(n)^k)}.

A133881 Even numbers k such that binomial(k+p,k) mod k = 1, where p=10.

Original entry on oeis.org

4, 68, 164, 260, 292, 356, 388, 452, 484, 516, 548, 676, 708, 772, 836, 932, 964, 1028, 1060, 1124, 1156, 1252, 1348, 1412, 1444, 1508, 1572, 1604, 1636, 1732, 1796, 1828, 1892, 1924, 2084, 2116, 2244, 2276, 2308, 2372, 2404, 2468, 2564, 2596, 2692, 2756
Offset: 1

Views

Author

Hieronymus Fischer, Oct 16 2007

Keywords

Crossrefs

Programs

  • Mathematica
    Select[2*Range[1500],Mod[Binomial[10+#,#],#]==1&] (* Harvey P. Dale, Jun 05 2023 *)

A133894 Numbers m such that binomial(m+4,m) mod 4 = 0.

Original entry on oeis.org

12, 13, 14, 15, 28, 29, 30, 31, 44, 45, 46, 47, 60, 61, 62, 63, 76, 77, 78, 79, 92, 93, 94, 95, 108, 109, 110, 111, 124, 125, 126, 127, 140, 141, 142, 143, 156, 157, 158, 159, 172, 173, 174, 175, 188, 189, 190, 191, 204, 205, 206, 207, 220, 221, 222, 223, 236, 237
Offset: 1

Views

Author

Hieronymus Fischer, Oct 20 2007

Keywords

Comments

Also numbers m such that floor(1+(m/4)) mod 4 = 0.
Partial sums of the sequence 12,1,1,1,13,1,1,1,13, ... which has period 4.
Numbers congruent to {12,13,14,15} mod 16. Numbers n such that n xor 12 = n - 12. [Brad Clardy, May 06 2013]

Crossrefs

Programs

Formula

a(n) = 4*n + 12 - 3*(n mod 4).
G.f.: 12/(1-x)+x(1+x+x^2+13x^3)/((1-x^4)(1-x)) = (12+x+x^2+x^3+x^4)/((1-x^4)(1-x)) = (12-11x-x^5)/((1-x^4)(1-x)^2).
a(n) = 4*n+3*((1-i)*i^n+(1+i)*(-i)^n+(-1)^n+5)/2, where i=sqrt(-1). - Bruno Berselli, Apr 08 2011

A133908 Least odd prime number m such that binomial(n+m,m) mod m = 1.

Original entry on oeis.org

3, 3, 5, 5, 7, 7, 11, 11, 3, 3, 3, 13, 17, 17, 17, 17, 19, 3, 3, 3, 23, 23, 29, 29, 5, 5, 3, 3, 3, 31, 37, 37, 37, 37, 37, 3, 3, 3, 41, 41, 43, 43, 47, 47, 3, 3, 3, 53, 7, 5, 5, 5, 5, 3, 3, 3, 59, 59, 61, 61, 67, 67, 3, 3, 3, 67, 71, 71, 71, 71, 73, 3, 3, 3, 5, 5, 5, 5, 5, 83, 3, 3, 3, 89, 89
Offset: 1

Views

Author

Hieronymus Fischer, Oct 20 2007

Keywords

Comments

Also the least odd prime number m such that m divides floor(n/m) or m>n.

Examples

			a(3)=5, since binomial(3+5,5) mod 5 = 56 mod 5 = 1 and 5 is the minimal odd prime number with this property.
a(8)=11 because of binomial(8+11,11)=75582=6871*11+1, but binomial(8+k,k) mod k<>1 for all odd primes <11.
		

Crossrefs

Programs

  • Mathematica
    With[{oprs=Rest[Prime[Range[100]]]},Flatten[Table[Select[oprs,Mod[ Binomial[ n+#,#],#]==1&,1],{n,90}]]] (* Harvey P. Dale, Jun 27 2012 *)

A135104 Digital sum (base the n-th prime) of n^4.

Original entry on oeis.org

1, 4, 5, 10, 15, 24, 17, 28, 27, 60, 31, 36, 81, 70, 71, 68, 117, 96, 37, 120, 81, 100, 139, 192, 97, 176, 123, 174, 205, 128, 193, 126, 137, 220, 201, 216, 133, 196, 397, 296, 189, 396, 321, 256, 305, 280, 331, 396, 445, 292, 313, 256, 481, 556, 417, 326, 553, 256
Offset: 1

Views

Author

Hieronymus Fischer, Dec 24 2007

Keywords

Examples

			a(2) = ds_prime(2)(2^4) = ds_3(16) = 1+2+1 = 4;
a(6) = ds_prime(6)(6^4) = ds_13(1296) = 7+8+9 = 24.
		

Crossrefs

Programs

  • Mathematica
    Table[Total[IntegerDigits[n^4, Prime[n]]], {n, 50}] (* G. C. Greubel, Sep 23 2016 *)
  • PARI
    a(n) = vecsum(digits(n^4, prime(n))); \\ Michel Marcus, Sep 24 2016

Formula

a(n) = ds_prime(n)(n^4), where ds_prime(n) = digital sum base the n-th prime.
a(n) = n^4 - (prime(n)-1)*Sum{k>0} ( floor(n^4/prime(n)^k) ).
Previous Showing 51-60 of 77 results. Next