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

A139716
If k is the largest divisor of n that is <= sqrt(n) then a(n) = n - k^2.
1
0, 1, 2, 0, 4, 2, 6, 4, 0, 6, 10, 3, 12, 10, 6, 0, 16, 9, 18, 4, 12, 18, 22, 8, 0, 22, 18, 12, 28, 5, 30, 16, 24, 30, 10, 0, 36, 34, 30, 15, 40, 6, 42, 28, 20, 42, 46, 12, 0, 25, 42, 36, 52, 18, 30, 7, 48, 54, 58, 24, 60, 58, 14, 0, 40, 30, 66, 52, 60, 21, 70, 8, 72, 70, 50, 60, 28, 42
OFFSET
1,3
COMMENTS
a(p) = p-1 for all primes p. a(n^2) = 0 for all positive integers n.
CROSSREFS
Sequence in context: A346612 A352528 A307704 * A168232 A253136 A216960
KEYWORD
nonn
AUTHOR
Leroy Quet, May 01 2008
EXTENSIONS
Extended by Ray Chandler, Jul 01 2009
STATUS
approved