Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A142884
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A142884 Prime finding sequence recursion where the primes are sums of two integers: a(n)=If( a(n-1)=prime,1, else a(n-2)+a(n-3)). +0
1
0, 1, 1, 1, 2, 1, 3, 1, 4, 4, 5, 1, 9, 6, 10, 15, 16, 25, 31, 1, 56, 32, 57, 88, 89, 1, 177, 90, 178, 267, 268, 445, 535, 713, 980, 1248, 1693, 1, 2941, 1694, 2942, 4635, 4636, 7577, 1, 12213, 7578, 12214, 19791, 19792, 32005, 39583, 51797, 1, 91380, 51798, 91381, 1 (list; graph; listen)
OFFSET

1,5

FORMULA

a(n)=If( a(n-1)=prime,1, else a(n-2)+a(n-3)).

EXAMPLE

15+ 16= 31,

32+ 57= 89,

713+ 980= 1693,

19792+ 32005= 51797,

237122034+ 314186695=551308729.

MATHEMATICA

Clear[a, n]; a[0] = 0; a[1] = 1; a[2] = 1; a[n_] := a[n] = If[PrimeQ[a[n - 1]], 1, a[n - 2] + a[n - 3]]; Table[a[n], {n, 0, 100}]

CROSSREFS

Sequence in context: A036445 A098910 A165025 this_sequence A142878 A082904 A034868

Adjacent sequences: A142881 A142882 A142883 this_sequence A142885 A142886 A142887

KEYWORD

nonn,uned

AUTHOR

Roger L. Bagula (rlbagulatftn(AT)yahoo.com), Sep 28 2008

page 1

Search completed in 0.005 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 November 27 22:38 EST 2009. Contains 167602 sequences.


AT&T Labs Research