login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A028947
Difference between P(n) and nearest integer to P(n-1)^2 / P(n-2), where P(i) =i-th prime.
0
0, -1, 1, -4, 2, -3, 2, 1, -6, 4, -3, -2, 2, 2, -1, -5, 4, -3, -2, 4, -2, 2, 2, -5, -2, 2, -2, 2, 10, -12, 2, -4, 8, -9, 4, 0, -2, 2, 0, -4, 8, -9, 2, -2, 10, -1, -9, -2, 2, 2, -4, 8, -4, 0, 0, -4, 4, -2, -2, 8, 4, -11, -2, 2, 10, -9, 4, -8, 2, 2, 2, -2, 0, -2, 2, 2, -4, 4
OFFSET
3,4
MATHEMATICA
Join[{0}, Rest[Last[#]-Round[#[[2]]^2/#[[1]]]&/@Partition[Prime[Range[ 80]], 3, 1]]] (* Harvey P. Dale, May 21 2012 *)
CROSSREFS
Sequence in context: A335381 A018845 A333215 * A068152 A278970 A182199
KEYWORD
sign
AUTHOR
Jeremy Newton (joefig(AT)greenville.infi.net)
STATUS
approved