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-3 of 3 results.

A014566 Sierpiński numbers of the first kind: n^n + 1.

Original entry on oeis.org

2, 2, 5, 28, 257, 3126, 46657, 823544, 16777217, 387420490, 10000000001, 285311670612, 8916100448257, 302875106592254, 11112006825558017, 437893890380859376, 18446744073709551617, 827240261886336764178, 39346408075296537575425, 1978419655660313589123980
Offset: 0

Views

Author

Keywords

Comments

Sierpiński primes of the form n^n + 1 are {2,5,257,...} = A121270. The prime p divides a((p-1)/2) for p = {5,7,13,23,29,31,37,47,53,61,71,...} = A003628 Primes congruent to {5, 7} mod 8. p^2 divides a((p-1)/2) for prime p = {29,37,3373,...}. - Alexander Adamchuk, Sep 11 2006
n divides a(n-1) for even n, or 2n divides a(2n-1). a(2n-1)/(2n) = A124899(n) = {1, 7, 521, 102943, 38742049, 23775972551, 21633936185161, 27368368148803711, 45957792327018709121, ...}. 2^n divides a(2^n-1). A014566[2^n - 1] / 2^n = A081216[2^n - 1] = A122000[n] = {1, 7, 102943, 27368368148803711, 533411691585101123706582594658103586126397951, ...}. p+1 divides a(p) for prime p. a(p)/(p+1) = A056852[n] = {7, 521, 102943, 23775972551, 21633936185161, ...}. p^2 divides a((p-1)/2) for prime p = {29, 37, 3373} = A121999(n). - Alexander Adamchuk, Nov 12 2006

References

  • Graham Everest, Alf van der Poorten, Igor Shparlinski and Thomas Ward, Recurrence Sequences, Amer. Math. Soc., 2003; see esp. p. 255.
  • Maohua Le, Primes in the sequences n^n+1 and n^n-1, Smarandache Notions Journal, Vol. 10, No. 1-2-3, 1999, pp. 156-157.
  • Paulo Ribenboim, The Book of Prime Number Records, 2nd ed. New York: Springer-Verlag, p. 74, 1989.

Crossrefs

Programs

Formula

For n>0, resultant of x^n+1 and nx-1. - Ralf Stephan, Nov 20 2004
E.g.f.: exp(x) + 1/(1+LambertW(-x)). - Vaclav Kotesovec, Dec 20 2014
Sum_{n>=1} 1/a(n) = A134883. - Amiram Eldar, Nov 15 2020

Extensions

More terms from Erich Friedman

A081216 a(n) = (n^n-(-1)^n)/(n+1).

Original entry on oeis.org

0, 1, 1, 7, 51, 521, 6665, 102943, 1864135, 38742049, 909090909, 23775972551, 685853880635, 21633936185161, 740800455037201, 27368368148803711, 1085102592571150095, 45957792327018709121, 2070863582910344082917, 98920982783015679456199
Offset: 0

Views

Author

Vladeta Jovovic, Apr 17 2003

Keywords

Comments

a(n) is prime for n = {3, 5, 17, 157} = A056826(n) Primes p such that (p^p + 1)/(p + 1) is a prime. Prime a(n) are {7, 521, 45957792327018709121, ...}. Bisection of a(n) is Sierpinski quotient a(2n-1) = A124899(n) = ((2n-1)^(2n-1) + 1)/(2n) = A014566(2n-1)/(2n). - Alexander Adamchuk, Nov 12 2006
This is related to the dimension of the primitive middle cohomology of Dwork hypersurfaces x1**n+x2**n+...+xn**n=n*psi*x1*x2*...*xn. [F. Chapoton, Dec 11 2009]

Crossrefs

Main diagonal of A062160.
Cf. A056826, A124899, A014566 (Sierpinski numbers of the first kind: n^n + 1).

Programs

  • Maple
    a:= n-> (n^n-(-1)^n)/(n+1):
    seq(a(n), n=0..20);  # Alois P. Heinz, May 11 2023
  • PARI
    a(n) = (n^n-(-1)^n)/(n+1); \\ Michel Marcus, Jul 29 2017
  • Sage
    [((n - 1)**(n - 1) + (-1)**n) // n for n in range(1, 16)]
    

Extensions

Edited by F. Chapoton, Feb 03 2011

A343009 a(n) = (n^(2n)-1)/(n^2-1) for n > 1, a(1) = 1.

Original entry on oeis.org

1, 5, 91, 4369, 406901, 62193781, 14129647351, 4467856773185, 1876182941212489, 1010101010101010101, 678356244890331342611, 555922008415320588345745, 546031727340884622966664381, 633213824057681722185793753109, 856031514432518244055765015738351
Offset: 1

Views

Author

Thomas Ordowski, Apr 02 2021

Keywords

Comments

Conjecture: for n > 2, a(n) is a Fermat pseudoprime to base n.
If p is an odd prime, then a(p) is a Cipolla pseudoprime to base p.
Is a(m) a Fermat pseudoprime to base m for every composite m?
Amiram Eldar confirmed this up to m = 3800.
From Jianing Song, Aug 28 2022: (Start)
a(n) = Product_{d|(2n),d>2} Phi(d,n), where Phi(n,x) is the d-th cyclotomic polynomial. Note that Phi(n,x) > 1 for x >= 2 unless (n,x) = (1,2): suppose that n >= 3 and x >= 2, then Phi(n,x) = Product_{1<=j<=n,gcd(j,n)=1} (x - exp(2*j*Pi*i/n)) = Product_{1<=j<=n/2,gcd(j,n)=1} (x^2 - 2*cos(2*j*Pi/n)*x + 1) = Product_{1<=j<=n/2,gcd(j,n)=1} ((x - cos(2*j*Pi/n))^2 + (sin(2*j*Pi/n))^2) > 1 since x - cos(2*j*Pi/n) > 1. This shows that a(n) is composite for n > 2.
For n > 2, a(n) is a Fermat pseudoprime to base n, since n^(2*n) == 1 (mod a(n)) and 2*n divides a(n)-1 = n^2*(n^(2*n-2)-1)/(n^2-1): if n is even, then 2*n | n^2; if n is odd, then n | n^2 and 2 | n^2+1 = (n^4-1)/(n^2-1) | (n^(2*n-2)-1)/(n^2-1). (End)

Examples

			a(10) = (10^20-1)/99 = 1010101010101010101.
		

Crossrefs

Programs

  • Mathematica
    a[n_] := (n^(2*n)-1)/(n^2-1); a[1] = 1; Array[a, 15] (* Amiram Eldar, Apr 02 2021 *)

Formula

a(n) = Sum_{k=0..n-1} n^(2*k). - Davide Rotondo, Aug 28 2022
From Alois P. Heinz, Aug 28 2022: (Start)
a(n) = A117812(n)/A005563(n-1) = A117812(n)/A132411(n-1) for n>=2.
Limit_{n -> 1} (n^(2*n)-1)/(n^2-1) = 1. (End).

Extensions

More terms from Amiram Eldar, Apr 02 2021
a(1)=1 prepended and name adapted by Alois P. Heinz, Aug 28 2022
Showing 1-3 of 3 results.