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

A089887
Number of subsets of {1,.., n} containing no squares.
4
1, 2, 4, 4, 8, 16, 32, 64, 64, 128, 256, 512, 1024, 2048, 4096, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 1048576, 2097152, 4194304, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456
OFFSET
1,2
COMMENTS
a(n) = Product(2-A010052(k): 1<=k<=n) = A089886(n,0) = A000079(n)-A089888(n).
FORMULA
a(n) = 2^(n-n^(1/2)).
PROG
(PARI) a(n)=2^(n-sqrtint(n)) \\ Charles R Greathouse IV, Apr 09 2012
CROSSREFS
Sequence in context: A321241 A290128 A291778 * A161816 A374821 A240347
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Nov 13 2003
STATUS
approved