login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A134487 a(1)=1; for n>=2, a(n) = the largest prime dividing n*a(n-1) + 1. 2
1, 3, 5, 7, 3, 19, 67, 179, 31, 311, 59, 709, 419, 5867, 557, 2971, 61, 157, 373, 829, 1741, 38303, 2381, 1039, 191, 4967, 13411, 375509, 418837, 966547, 14981479, 16127, 16631, 149, 163, 5869, 15511, 829, 137, 29, 17, 13, 7, 103, 61, 401, 31, 1489 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
EXAMPLE
a(9)=31 because 9*a(8) + 1 = 9*179 + 1 = 1612 = 2*2*13*31.
MAPLE
with(numtheory): a:=proc(n) local f, L: if n = 1 then 1 else f:=factorset(1+n*a(n-1)): L:=convert(f, list): L[nops(L)] end if end proc: seq(a(n), n=1..35); # Emeric Deutsch, Nov 12 2007
MATHEMATICA
a = {1}; Do[AppendTo[a, FactorInteger[(Length[a] + 1)*a[[ -1]] + 1][[ -1, 1]]], {70}]; a (* Stefan Steinerberger, Oct 30 2007 *)
nxt[{a_, n_}]:={FactorInteger[a(n+1)+1][[-1, 1]], n+1}; Transpose[ NestList[ nxt, {1, 1}, 50]][[1]] (* Harvey P. Dale, Jun 02 2014 *)
CROSSREFS
Cf. A134486.
Sequence in context: A130139 A204938 A101088 * A064537 A023899 A356026
KEYWORD
nonn
AUTHOR
Leroy Quet, Oct 28 2007
EXTENSIONS
More terms from Stefan Steinerberger, Oct 30 2007
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 25 22:58 EDT 2024. Contains 375454 sequences. (Running on oeis4.)