login
This site is supported by donations to The OEIS Foundation.

 

Logo

Annual Appeal: Please make a donation (tax deductible in USA) to keep the OEIS running. Over 5000 articles have referenced us, often saying "we discovered this result with the help of the OEIS".

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A007459 Higgs' primes: a(n+1) = next prime such that a(n+1)-1 | (a(1)...a(n))^2.
(Formerly M0660)
7
2, 3, 5, 7, 11, 13, 19, 23, 29, 31, 37, 43, 47, 53, 59, 61, 67, 71, 79, 101, 107, 127, 131, 139, 149, 151, 157, 173, 181, 191, 197, 199, 211, 223, 229, 263, 269, 277, 283, 311, 317, 331, 347, 349, 367, 373, 383, 397, 419, 421, 431, 461, 463, 491, 509, 523, 547, 557, 571 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

REFERENCES

N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

LINKS

T. D. Noe, Table of n, a(n) for n = 1..1000

S. Burris and S. Lee, Tarski's high school identities, Amer. Math. Monthly 100 (1993), 231-236.

MATHEMATICA

f[ n_List ] := (a = n; b = Apply[ Times, a^2 ]; d = NextPrime[ a[ [ -1 ] ] ]; While[ ! IntegerQ[ b/(d - 1) ] || d > b, d = NextPrime[ d ] ]; AppendTo[ a, d ]; Return[ a ]); Nest[ f, {2}, 75 ]

PROG

(Haskell)

a007459 n = a007459_list !! (n-1)

a007459_list = f 1 a000040_list where

  f q (p:ps) = if mod q (p - 1) == 0 then p : f (q * p ^ 2) ps else f q ps

-- Reinhard Zumkeller, Apr 14 2013

(PARI) step(v)=my(N=vecprod(v)^2); forprime(p=v[#v]+1, , if(N%(p-1)==0, return(concat(v, p))))

first(n)=my(v=[2]); for(i=2, n, v=step(v)); v \\ Charles R Greathouse IV, Jun 11 2015

CROSSREFS

Cf. A057447, A057448 & A057459.

Sequence in context: A042987 A089189 A097375 * A129944 A176162 A152900

Adjacent sequences:  A007456 A007457 A007458 * A007460 A007461 A007462

KEYWORD

nonn,nice

AUTHOR

N. J. A. Sloane.

EXTENSIONS

More terms from David W. Wilson

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent | More pages
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy .

Last modified December 2 21:20 EST 2016. Contains 278694 sequences.