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

A175269
a(n) = floor(2^sqrt(n)) - floor(n^sqrt(2)).
1
1, 1, 0, -1, -3, -5, -7, -9, -11, -14, -17, -20, -22, -25, -28, -32, -34, -37, -41, -44, -47, -51, -54, -57, -60, -62, -66, -69, -72, -75, -78, -81, -84, -87, -90, -92, -94, -98, -100, -102, -104, -106, -108, -110, -111, -113, -114, -116, -117, -117, -118
OFFSET
0,5
LINKS
MATHEMATICA
Table[Floor[2^Sqrt[n]] - Floor[n^Sqrt[2]], {n, 0, 100}]
PROG
(PARI) vector(100, n, n--; floor(2^sqrt(n)) - floor(n^sqrt(2))) \\ G. C. Greubel, Oct 02 2018
(Magma) [Floor(2^Sqrt(n)) - Floor(n^Sqrt(2)): n in [0..100]]; // G. C. Greubel, Oct 02 2018
CROSSREFS
Sequence in context: A134917 A066665 A278451 * A318919 A279539 A174059
KEYWORD
sign
AUTHOR
Zak Seidov, Mar 18 2010
STATUS
approved