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!)
A112337 a(1)=1, a(2) = 2. a(n) = a(n-2) + (largest prime dividing a(n-1)). 1
1, 2, 3, 5, 8, 7, 15, 12, 18, 15, 23, 38, 42, 45, 47, 92, 70, 99, 81, 102, 98, 109, 207, 132, 218, 241, 459, 258, 502, 509, 1011, 846, 1058, 869, 1137, 1248, 1150, 1271, 1191, 1668, 1330, 1687, 1571, 3258, 1752, 3331, 5083, 3354, 5126, 3587, 5337, 4180, 5356 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
EXAMPLE
a(13) = a(11) + (largest prime dividing a(12)). a(12) is 38 and 19 is the largest prime dividing it. So a(13) = 23 + 19 = 42.
MATHEMATICA
Nest[Append[#, FactorInteger[#[[-1]]][[-1, 1]] + #[[-2]]] &, {1, 2}, 51] (* Ivan Neretin, Jun 18 2018 *)
PROG
(MuPAD) A := array(1..100); A[1] := 1; A[2] := 2; for n from 3 to 100 do s := ifactor(A[n-1]); b := s[nops(s)-1]; A[n] := A[n-2] + b; print(A[n]); end_for; // Stefan Steinerberger, Dec 02 2005
CROSSREFS
Sequence in context: A284172 A230445 A125727 * A141804 A121368 A010073
KEYWORD
nonn
AUTHOR
Leroy Quet, Dec 01 2005
EXTENSIONS
More terms from Stefan Steinerberger, Dec 02 2005
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 April 19 16:52 EDT 2024. Contains 371794 sequences. (Running on oeis4.)