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.

Showing 1-5 of 5 results.

A006093 a(n) = prime(n) - 1.

Original entry on oeis.org

1, 2, 4, 6, 10, 12, 16, 18, 22, 28, 30, 36, 40, 42, 46, 52, 58, 60, 66, 70, 72, 78, 82, 88, 96, 100, 102, 106, 108, 112, 126, 130, 136, 138, 148, 150, 156, 162, 166, 172, 178, 180, 190, 192, 196, 198, 210, 222, 226, 228, 232, 238, 240, 250, 256, 262, 268, 270
Offset: 1

Views

Author

Keywords

Comments

These are also the numbers that cannot be written as i*j + i + j (i,j >= 1). - Rainer Rosenthal, Jun 24 2001; Henry Bottomley, Jul 06 2002
The values of k for which Sum_{j=0..n} (-1)^j*binomial(k, j)*binomial(k-1-j, n-j)/(j+1) produces an integer for all n such that n < k. Setting k=10 yields [0, 1, 4, 11, 19, 23, 19, 11, 4, 1, 0] for n = [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9], so 10 is in the sequence. Setting k=3 yields [0, 1, 1/2, 1/2] for n = [-1, 0, 1, 2], so 3 is not in the sequence. - Dug Eichelberger (dug(AT)mit.edu), May 14 2001
n such that x^n + x^(n-1) + x^(n-2) + ... + x + 1 is irreducible. - Robert G. Wilson v, Jun 22 2002
Records for Euler totient function phi.
Together with 0, n such that (n+1) divides (n!+1). - Benoit Cloitre, Aug 20 2002; corrected by Charles R Greathouse IV, Apr 20 2010
n such that phi(n^2) = phi(n^2 + n). - Jon Perry, Feb 19 2004
Numbers having only the trivial perfect partition consisting of a(n) 1's. - Lekraj Beedassy, Jul 23 2006
Numbers n such that the sequence {binomial coefficient C(k,n), k >= n } contains exactly one prime. - Artur Jasinski, Dec 02 2007
Record values of A143201: a(n) = A143201(A001747(n+1)) for n > 1. - Reinhard Zumkeller, Aug 12 2008
From Reinhard Zumkeller, Jul 10 2009: (Start)
The first N terms can be generated by the following sieving process:
start with {1, 2, 3, 4, ..., N - 1, N};
for i := 1 until SQRT(N) do
(if (i is not striked out) then
(for j := 2 * i + 1 step i + 1 until N do
(strike j from the list)));
remaining numbers = {a(n): a(n) <= N}. (End)
a(n) = partial sums of A075526(n-1) = Sum_{1..n} A075526(n-1) = Sum_{1..n} (A008578(n+1) - A008578(n)) = Sum_{1..n} (A158611(n+2) - A158611(n+1)) for n >= 1. - Jaroslav Krizek, Aug 04 2009
A171400(a(n)) = 1 for n <> 2: subsequence of A171401, except for a(2) = 2. - Reinhard Zumkeller, Dec 08 2009
Numerator of (1 - 1/prime(n)). - Juri-Stepan Gerasimov, Jun 05 2010
Numbers n such that A002322(n+1) = n. This statement is stronger than repeating the property of the entries in A002322, because it also says in reciprocity that this sequence here contains no numbers beyond the Carmichael numbers with that property. - Michel Lagneau, Dec 12 2010
a(n) = A192134(A095874(A000040(n))); subsequence of A192133. - Reinhard Zumkeller, Jun 26 2011
prime(a(n)) + prime(k) < prime(a(k) + k) for at least one k <= a(n): A212210(a(n),k) < 0. - Reinhard Zumkeller, May 05 2012
Except for the first term, numbers n such that the sum of first n natural numbers does not divide the product of first n natural numbers; that is, n*(n + 1)/2 does not divide n!. - Jayanta Basu, Apr 24 2013
BigOmega(a(n)) equals BigOmega(a(n)*(a(n) + 1)/2), where BigOmega = A001222. Rationale: BigOmega of the product on the right hand side factorizes as BigOmega(a/2) + Bigomega(a+1) = BigOmega(a/2) + 1 because a/2 and a + 1 are coprime, because BigOmega is additive, and because a + 1 is prime. Furthermore Bigomega(a/2) = Bigomega(a) - 1 because essentially all 'a' are even. - Irina Gerasimova, Jun 06 2013
Record values of A060681. - Omar E. Pol, Oct 26 2013
Deficiency of n-th prime. - Omar E. Pol, Jan 30 2014
Conjecture: All the sums Sum_{k=s..t} 1/a(k) with 1 <= s <= t are pairwise distinct. In general, for any integers d >= -1 and m > 0, if Sum_{k=i..j} 1/(prime(k)+d)^m = Sum_{k=s..t} 1/(prime(k)+d)^m with 0 < i <= j and 0 < s <= t then we must have (i,j) = (s,t), unless d = m = 1 and {(i,j),(s,t)} = {(4,4),(8,10)} or {(4,7),(5,10)}. (Note that 1/(prime(8)+1)+1/(prime(9)+1)+1/(prime(10)+1) = 1/(prime(4)+1) and Sum_{k=5..10} 1/(prime(k)+1) = 1/(prime(4)+1) + Sum_{k=5..7} 1/(prime(k)+1).) - Zhi-Wei Sun, Sep 09 2015
Numbers n such that (prime(i)^n + n) is divisible by (n+1), for all i >= 1, except when prime(i) = n+1. - Richard R. Forberg, Aug 11 2016
a(n) is the period of Fubini numbers (A000670) over the n-th prime. - Federico Provvedi, Nov 28 2020

References

  • Archimedeans Problems Drive, Eureka, 40 (1979), 28.
  • Harvey Dubner, Generalized Fermat primes, J. Recreational Math., 18 (1985): 279-280.
  • M. Gardner, The Colossal Book of Mathematics, pp. 31, W. W. Norton & Co., NY, 2001.
  • M. Gardner, Mathematical Circus, pp. 251-2, Alfred A. Knopf, NY, 1979.
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

a(n) = K(n, 1) and A034693(K(n, 1)) = 1 for all n. The subscript n refers to this sequence and K(n, 1) is the index in A034693. - Labos Elemer
Cf. A000040, A034694. Different from A075728.
Complement of A072668 (composite numbers minus 1), A072670(a(n))=0.
Essentially the same as A039915.
Cf. A101301 (partial sums), A005867 (partial products).
Column 1 of the following arrays/triangles: A087738, A249741, A352707, A378979, A379010.
The last diagonal of A162619, and of A174996, the first diagonal in A131424.
Row lengths of irregular triangles A086145, A124223, A212157.

Programs

Formula

a(n) = (p-1)! mod p where p is the n-th prime, by Wilson's theorem. - Jonathan Sondow, Jul 13 2010
a(n) = A000010(prime(n)) = A000010(A006005(n)). - Antti Karttunen, Dec 16 2012
a(n) = A005867(n+1)/A005867(n). - Eric Desbiaux, May 07 2013
a(n) = A000040(n) - 1. - Omar E. Pol, Oct 26 2013
a(n) = A033879(A000040(n)). - Omar E. Pol, Jan 30 2014

Extensions

Correction for change of offset in A158611 and A008578 in Aug 2009 Jaroslav Krizek, Jan 27 2010
Obfuscating comments removed by Joerg Arndt, Mar 11 2010
Edited by Charles R Greathouse IV, Apr 20 2010

A223701 Irregular triangle of numbers k such that prime(n) is the largest prime factor of k^2 - 1.

Original entry on oeis.org

3, 2, 5, 7, 17, 4, 9, 11, 19, 26, 31, 49, 161, 6, 8, 13, 15, 29, 41, 55, 71, 97, 99, 127, 244, 251, 449, 4801, 8749, 10, 21, 23, 34, 43, 65, 76, 89, 109, 111, 197, 199, 241, 351, 485, 769, 881, 1079, 6049, 19601, 12, 14, 25, 27, 51, 53, 64, 79, 129, 131, 155
Offset: 1

Views

Author

T. D. Noe, Apr 03 2013

Keywords

Comments

Note that the first number of each row forms the sequence 3, 2, 4, 6, 10, 12,..., which is A039915. The first 25 rows, except the first, are in A181447-A181470.

Examples

			Irregular triangle:
  {3},
  {2, 5, 7, 17},
  {4, 9, 11, 19, 26, 31, 49, 161},
  {6, 8, 13, 15, 29, 41, 55, 71, 97, 99, 127, 244, 251, 449, 4801, 8749}
		

Crossrefs

Row 26 is A181568.
Cf. A039915 (first terms), A175607 (last terms), A181471 (row lengths), A379344 (row sums).
Cf. A223702, A223703, A223704 (related tables).

Programs

  • Mathematica
    t = Table[FactorInteger[n^2 - 1][[-1,1]], {n, 2, 10^5}]; Table[1 + Flatten[Position[t, Prime[n]]], {n, 6}]

A068499 Numbers m such that m! reduced modulo (m+1) is not zero.

Original entry on oeis.org

1, 2, 3, 4, 6, 10, 12, 16, 18, 22, 28, 30, 36, 40, 42, 46, 52, 58, 60, 66, 70, 72, 78, 82, 88, 96, 100, 102, 106, 108, 112, 126, 130, 136, 138, 148, 150, 156, 162, 166, 172, 178, 180, 190, 192, 196, 198, 210, 222, 226, 228, 232, 238, 240, 250, 256, 262, 268, 270
Offset: 1

Views

Author

Benoit Cloitre, Mar 11 2002

Keywords

Comments

Also n such that tau((n+1)!) = 2* tau(n!)
For n > 2, a(n) is the smallest number such that a(n) !== -1 (mod a(k)+1) for any 1 < k < n. [Franklin T. Adams-Watters, Aug 07 2009]
Also n such that sigma((n+1)!) = (n+2)* sigma(n!), which is the same as A062569(n+1) = (n+2)*A062569(n). - Zak Seidov, Aug 22 2012
This sequence is obtained by the following sieve: keep 1 in the sequence and then, at the k-th step, keep the smallest number, x say, that has not been crossed off before and cross off all the numbers of the form k*(x + 1) - 1 with k > 1. The numbers that are left form the sequence. - Jean-Christophe Hervé, Dec 12 2015
a(n) = A039915(n-1) for 3 < n <= 1000. - Georg Fischer, Oct 19 2018

Examples

			Illustration of the sieve: keep 1 = a(1) and then
1st step: take 2 = a(2) and cross off 5, 8, 11, 14, 17, 20, 23, 26, etc.
2nd step: take 3 = a(3) and cross off 7, 11, 15, 19, 23, 27, etc.
3rd step: take 4 = a(4) and cross off 9, 14, 19, 24, etc.
4th step: take 6 = a(5) and cross off 13, 19, 25 etc.
10 is obtained at next step and the smallest crossed off numbers are then 21 and 28. This gives the beginning of the sequence up to 22 = a(10): 1, 2, 3, 4, 6, 10, 12, 16, 18, 22. - _Jean-Christophe Hervé_, Dec 12 2015
		

Crossrefs

Cf. A000040, A039915, A062569, A166460 (almost complement).

Programs

  • Mathematica
    Select[Range[300],Mod[#!,#+1]!=0&] (* Harvey P. Dale, Apr 11 2012 *)
  • PARI
    {plnt=1 ; nfa=1; mxind=60 ;  for(k=1, 10^7, nfa=nfa*k;
    if(nfa % (k+1) != 0 , print1(k, ", "); plnt++ ;
    if(mxind <  plnt, break() )))} \\ Douglas Latimer, Apr 25 2012
    
  • PARI
    a(n)=if(n<5,n,prime(n-1)-1) \\ Charles R Greathouse IV, Apr 25 2012
    
  • Python
    from sympy import prime
    def A068499(n): return prime(n-1)-1 if n>3 else n # Chai Wah Wu, Aug 27 2024

Formula

For n >= 4, a(n) = prime(n-1) - 1 = A006093(n-1).
For n <> 3, all terms are one less prime. - Zak Seidov, Aug 22 2012
a(n) = Integer part of A078456(n+1)/A078456(n). - Eric Desbiaux, May 07 2013

A181471 a(n) = number of numbers of the form k^2-1 having n-th prime as largest prime divisor.

Original entry on oeis.org

1, 4, 8, 16, 20, 34, 47, 72, 95, 126, 168, 208, 262, 343, 433, 507, 634, 799, 976, 1146, 1439, 1698, 2082, 2371, 2734
Offset: 1

Views

Author

Artur Jasinski, Oct 21-22 2010

Keywords

Comments

Theorem: zero does not occur in this sequence. Proof: (p-1)^2-1=(p-2)p. This means that p is greatest prime divisor of (p-1)^2-1 for every p.
An effective abc conjecture (c < rad(abc)^2) would imply that a(24)-a(33) are (2371, 2734, 3360, 4022, 4637, 5575, 6424, 7268, 8351, 9661). - Lucas A. Brown, Oct 01 2022

Crossrefs

Row lengths of A223701.

Extensions

Wrong terms a(24)-a(25) removed by Lucas A. Brown, Oct 01 2022
a(24)-a(25) from David A. Corneth, Oct 01 2022

A121206 a(n) = (2n)! mod n(2n+1).

Original entry on oeis.org

2, 4, 6, 0, 10, 12, 0, 16, 18, 0, 22, 0, 0, 28, 30, 0, 0, 36, 0, 40, 42, 0, 46, 0, 0, 52, 0, 0, 58, 60, 0, 0, 66, 0, 70, 72, 0, 0, 78, 0, 82, 0, 0, 88, 0, 0, 0, 96, 0, 100, 102, 0, 106, 108, 0, 112, 0, 0, 0, 0, 0, 0, 126, 0, 130, 0, 0, 136, 138, 0, 0, 0, 0, 148, 150, 0, 0, 156, 0, 0, 162
Offset: 1

Views

Author

Ben Paul Thurston, Aug 20 2006

Keywords

Comments

If the zeros are removed and a 3 is inserted at the front, the first 3000 terms (or more) of the condensed sequence coincide with A039915. - R. J. Mathar, Mar 02 2007

Examples

			a(4) = 0 because 8*7*6*5*4*3*2*1 / 8+7+6+5+4+3+2+1 divides evenly (0 remainder).
		

Crossrefs

Cf. A005097 gives indices of nonzero terms; A047845 gives indices of zero terms.

Programs

  • Mathematica
    Table[Mod[(2n)!, n*(2n + 1)], {n, 85}] (* Ray Chandler, Aug 23 2006 *)

Formula

a(n) = A000142(2n) mod A000217(2n).

Extensions

Edited, corrected and extended by R. J. Mathar and Ray Chandler, Aug 23 2006
Showing 1-5 of 5 results.