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 11-20 of 27 results. Next

A134332 Integer part of the arithmetic mean of the prime factors (counted with multiplicity) of the period numbers defined by A133900.

Original entry on oeis.org

1, 2, 3, 2, 5, 2, 7, 2, 3, 3, 11, 2, 13, 3, 3, 2, 17, 2, 19, 2, 4, 4, 23, 2, 5, 5, 3, 3, 29, 3, 31, 2, 5, 5, 5, 2, 37, 6, 6, 2, 41, 3, 43, 4, 3, 7, 47, 2, 7, 3, 7, 4, 53, 2, 7, 3, 8, 8, 59, 2, 61, 9, 4, 2, 8, 3, 67, 5, 9, 3, 71, 2, 73, 9, 4, 5, 8, 4, 79, 2, 3, 9, 83, 3, 9, 11, 10, 3, 89, 2, 9, 6, 11, 12
Offset: 1

Views

Author

Hieronymus Fischer, Oct 23 2007

Keywords

Examples

			a(6)=2, since floor(A134331(6)/A133911(6))=floor(12/5)=2.
a(7)=7, since floor(A134331(7)/A133911(7))=floor(14/2)=7.
		

Crossrefs

Formula

a(n)=floor(A134331(n)/A133911(n)) for n>1, defining a(1):=1.
a(n)=n, if n is a prime or 1.

A078177 Composite numbers with an integer arithmetic mean of all prime factors.

Original entry on oeis.org

4, 8, 9, 15, 16, 20, 21, 25, 27, 32, 33, 35, 39, 42, 44, 49, 50, 51, 55, 57, 60, 64, 65, 68, 69, 77, 78, 81, 85, 87, 91, 92, 93, 95, 105, 110, 111, 112, 114, 115, 116, 119, 121, 123, 125, 128, 129, 133, 140, 141, 143, 145, 155, 156, 159, 161, 164, 169, 170, 177, 180
Offset: 1

Views

Author

Reinhard Zumkeller, Nov 20 2002

Keywords

Comments

That is, composite numbers such that the arithmetic mean of their prime factors (counted with multiplicity) is an integer.

Examples

			60 = 2*2*3*5: (2+2+3+5)/4 = 3, therefore 60 is a term.
		

Crossrefs

Programs

  • Mathematica
    Select[Range[200], CompositeQ[#] && IntegerQ[Mean[Flatten[Table[#[[1]], #[[2]]]& /@ FactorInteger[#]]]]&] (* Jean-François Alcover, Aug 03 2018 *)
  • PARI
    lista(nn) = {forcomposite(n=1, nn, my(f = factor(n)); if (! (sum(k=1, #f~, f[k,1]*f[k,2]) % vecsum(f[,2])), print1(n, ", ")););} \\ Michel Marcus, Feb 22 2016

Formula

A001414(a(n)) == 0 modulo A001222(a(n)).

Extensions

Edited by N. J. A. Sloane, May 30 2008 at the suggestion of R. J. Mathar

A133884 a(n) = binomial(n+4,n) mod 4.

Original entry on oeis.org

1, 1, 3, 3, 2, 2, 2, 2, 3, 3, 1, 1, 0, 0, 0, 0, 1, 1, 3, 3, 2, 2, 2, 2, 3, 3, 1, 1, 0, 0, 0, 0, 1, 1, 3, 3, 2, 2, 2, 2, 3, 3, 1, 1, 0, 0, 0, 0, 1, 1, 3, 3, 2, 2, 2, 2, 3, 3, 1, 1, 0, 0, 0, 0, 1, 1, 3, 3, 2, 2, 2, 2, 3, 3, 1, 1, 0, 0, 0, 0, 1, 1, 3, 3, 2, 2, 2, 2, 3, 3, 1, 1, 0, 0, 0, 0, 1, 1, 3, 3, 2, 2, 2, 2, 3
Offset: 0

Views

Author

Hieronymus Fischer, Oct 10 2007

Keywords

Comments

Periodic with length 4^2=16.

Examples

			For n=2, binomial(6,2) = 6*5/2 = 15, which is 3 (mod 4) so a(2) = 3. - _Michael B. Porter_, Jul 19 2016
		

Crossrefs

Programs

  • Magma
    [Binomial(n+4,n) mod 4: n in [0..100]]; // Vincenzo Librandi, Jul 15 2016
  • Mathematica
    Table[Mod[Binomial[n + 4, 4], 4], {n, 0, 100}] (* Vincenzo Librandi, Jul 15 2016 *)

Formula

a(n) = binomial(n+4,4) mod 4.
G.f.: (1 + x + 3*x^2 + 3*x^3 + 2*x^4 + 2*x^5 + 2*x^6 + 2*x^7 + 3*x^8 + 3*x^9 + x^10 + x^11)/(1 - x^16) = (1 + 2*x^2 + 2*x^6 + x^8)/((1 - x)*(1 + x^4)*(1 + x^8)).
a(n) = A000505(n+5) mod 4. - John M. Campbell, Jul 14 2016
a(n) = A000506(n+6) mod 4. - John M. Campbell, Jul 15 2016

Extensions

G.f. corrected by Bruno Berselli, Jul 19 2016

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

Original entry on oeis.org

2, 3, 5, 2, 2, 7, 9, 2, 2, 3, 3, 2, 2, 17, 17, 2, 2, 3, 3, 2, 2, 23, 25, 2, 2, 4, 3, 2, 2, 31, 37, 2, 2, 8, 8, 2, 2, 3, 41, 2, 2, 4, 4, 2, 2, 3, 3, 2, 2, 5, 5, 2, 2, 3, 3, 2, 2, 4, 4, 2, 2, 67, 3, 2, 2, 44, 44, 2, 2, 16, 16, 2, 2, 3, 4, 2, 2, 5, 5, 2, 2, 3, 3, 2, 2, 89, 9, 2, 2, 3, 3, 2, 2, 97, 97, 2, 2, 7
Offset: 1

Views

Author

Hieronymus Fischer, Oct 20 2007

Keywords

Examples

			a(1)=2, since binomial(1+2, 2) mod 2 = 3 mod 2 = 1 and 2 is the minimal number with this property.
a(7)=9 because of binomial(7+9, 9) = 11440 = 1271*9 + 1, but binomial(7+k, k) mod k <> 1 for all numbers < 9.
		

Crossrefs

Programs

  • Mathematica
    Table[Block[{m = 1}, While[Mod[Binomial[n + m, m], m] != 1, m++]; m], {n, 98}] (* Michael De Vlieger, Jul 30 2018 *)
  • PARI
    a(n) = {my(m = 1, ok = 0); until (ok, if (binomial(n+m, m) % m == 1, ok = 1, m++);); return (m);} \\ Michel Marcus, Jul 15 2013

A133907 Least prime number p such that binomial(n+p, p) mod p = 1.

Original entry on oeis.org

2, 3, 5, 2, 2, 7, 11, 2, 2, 3, 3, 2, 2, 17, 17, 2, 2, 3, 3, 2, 2, 23, 29, 2, 2, 5, 3, 2, 2, 31, 37, 2, 2, 37, 37, 2, 2, 3, 41, 2, 2, 43, 47, 2, 2, 3, 3, 2, 2, 5, 5, 2, 2, 3, 3, 2, 2, 59, 61, 2, 2, 67, 3, 2, 2, 67, 71, 2, 2, 71, 73, 2, 2, 3, 5, 2, 2, 5, 5, 2, 2, 3, 3, 2, 2, 89, 89, 2, 2, 3, 3, 2, 2, 97
Offset: 1

Views

Author

Hieronymus Fischer, Oct 20 2007

Keywords

Comments

Also the least prime number p such that p divides floor(n/p) or p > n.
a(n) = 2 if and only if n is in A042948. - Robert Israel, May 11 2017
Conjecture: a(n) is the smallest prime p such that Sum_{k=1..n} k^(p-1) == n (mod p). Thus a(n) >= A317358(n). - Thomas Ordowski, Jul 29 2018

Examples

			a(2)=3, since binomial(2+3,3) mod 3 = 10 mod 3 = 1 and 3 is the minimal prime number with this property.
a(7)=11 because of binomial(7+11, 11) = 31824 = 2893*11 + 1, but binomial(7+k, k) mod k <> 1 for all primes < 11.
		

Crossrefs

Programs

  • Maple
    f:= proc(n) local m;
      m:= 2:
      while floor(n/m) mod m <> 0 do m:= nextprime(m) od:
      m
    end proc:
    map(f, [$1..100]); # Robert Israel, May 11 2017
  • Mathematica
    a[n_] := Module[{p}, For[p = 2, True, p = NextPrime[p], If[Mod[Binomial[n+p, p], p] == 1, Return[p]]]];
    Table[a[n], {n, 1, 100}] (* Jean-François Alcover, Feb 05 2023 *)
  • PARI
    a(n) = my(p=2); while (binomial(n+p, p) % p != 1, p = nextprime(p+1)); p; \\ Michel Marcus, Dec 17 2022
    
  • Python
    from sympy import nextprime, ff
    def A133907(n):
        p, m = 2, (n+2)*(n+1)>>1
        while m%p != 1:
            q = nextprime(p)
            m = m*ff(n+q,q-p)//ff(q,q-p)
            p = q
        return p # Chai Wah Wu, Feb 22 2023

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

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 *)
Previous Showing 11-20 of 27 results. Next