Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A131199
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A131199 a(0)=2. For n>=1, a(n) = a(n-1)+n if a(n-1) is composite; a(n) = a(n-1)*n if a(n-1) is prime. +0
1
2, 2, 4, 7, 28, 33, 39, 46, 54, 63, 73, 803, 815, 828, 842, 857, 13712, 13729, 247122, 247141, 4942820, 4942841, 4942863, 4942886, 4942910, 4942935, 4942961, 4942988, 4943016, 4943045, 4943075, 4943106, 4943138, 4943171, 4943205, 4943240 (list; graph; listen)
OFFSET

0,1

MAPLE

a[0]:=2: for n to 30 do if isprime(a[n-1])=false then a[n]:=a[n-1]+n else a[n]:=a[n-1]*n end if end do: seq(a[n], n=0..30); - Emeric Deutsch (deutsch(AT)duke.poly.edu), Oct 24 2007

A131199 := proc(n) option remember ; if n = 0 then 2 ; else if isprime(A131199(n-1)) then n*A131199(n-1) ; else n+A131199(n-1) ; fi ; fi ; end: seq(A131199(n), n=0..80) ; - R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Oct 30 2007

CROSSREFS

Cf. A083524.

Sequence in context: A014266 A032441 A065844 this_sequence A112059 A093094 A045777

Adjacent sequences: A131196 A131197 A131198 this_sequence A131200 A131201 A131202

KEYWORD

nonn

AUTHOR

Leroy Quet (qq-quet(AT)mindspring.com), Oct 21 2007

EXTENSIONS

More terms from Emeric Deutsch (deutsch(AT)duke.poly.edu) and R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Oct 24 2007

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified August 29 17:54 EDT 2008. Contains 143238 sequences.


AT&T Labs Research