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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A160189 Prime terms subtracted from Fibonacci terms (ignoring first two terms of Fibonacci sequence). 1
0, 0, 0, 1, 2, 8, 17, 36, 66, 115, 202, 340, 569, 944, 1550, 2531, 4122, 6704, 10879, 17640, 28584, 46289, 74942, 121304, 196321, 317710, 514126, 831933, 1346160, 2178196, 3524451, 5702756, 9227328, 14930213, 24157668, 39088018, 63245829 (list; graph; refs; listen; history; internal format)
OFFSET

1,5

COMMENTS

Superimpose Fibonacci sequence over the prime sequence (ignoring first two Fibonacci terms); subtract the prime term from the Fibonacci term.

FORMULA

Line up Fibonacci sequence above the prime sequence so that the 2,3,5, terms are one above the other. Then subtract the prime terms from the Fibonacci.

EXAMPLE

a(6)=8 because prime term 13 subtracted from Fibonacci term 21 = 8.

PROG

(Other) UBASIC: 10 'Fibo Fib-Prm 20 P=1:A=1:B=1:Q=Q+1 30 C=A+B:E=nxtprm(P):print C-E; :P=E 40 D=B+C:E=nxtprm(P):print D-E; :P=E 50 Q=Q+1 60 A=C:B=D:if Q<40 then 30 [From Enoch Haga (Enokh(AT)comcast.net), May 05 2009]

CROSSREFS

Cf. A004399.

Sequence in context: A066564 A034972 A061150 * A154349 A073601 A051248

Adjacent sequences:  A160186 A160187 A160188 * A160190 A160191 A160192

KEYWORD

easy,nonn

AUTHOR

Enoch Haga (Enokh(AT)comcast.net), May 04 2009; corrected May 05 2009

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

Content is available under The OEIS End-User License Agreement .

Last modified February 16 16:24 EST 2012. Contains 205938 sequences.