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”).

A074500
Difference between n*sqrt(n)+1 and prime(n), rounded to nearest integer.
0
0, 1, 1, 2, 1, 3, 3, 5, 5, 4, 6, 6, 7, 10, 12, 12, 12, 16, 17, 19, 24, 25, 28, 30, 29, 33, 38, 42, 48, 52, 47, 51, 54, 60, 59, 66, 69, 72, 78, 81, 85, 92, 92, 100, 106, 114, 112, 111, 117, 126, 132, 137, 146, 147, 152, 157, 162, 172, 177, 185, 194, 196, 194, 202, 212
OFFSET
1,4
FORMULA
a(n) = round(n*sqrt(n) + 1 - prime(n)).
EXAMPLE
a(3) = round(3*sqrt(3) + 1 - prime(3)) = round(5.196... + 1 - 5) = round(1.196...) = 1.
CROSSREFS
Sequence in context: A240863 A288005 A237832 * A107237 A070047 A101198
KEYWORD
nonn
AUTHOR
Werner D. Sand, Sep 26 2002
STATUS
approved