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

A377879
Deficiency of squares: a(n) = 2n^2 - sigma(n^2).
3
1, 1, 5, 1, 19, -19, 41, 1, 41, -17, 109, -115, 155, -7, 47, 1, 271, -199, 341, -161, 141, 37, 505, -499, 469, 71, 365, -199, 811, -1021, 929, 1, 449, 163, 683, -1159, 1331, 221, 663, -737, 1639, -1659, 1805, -251, 299, 361, 2161, -2035, 2001, -467, 1211, -265, 2755, -1819, 1927, -967, 1545, 631, 3421, -5293, 3659, 737
OFFSET
1,3
COMMENTS
It is conjectured that 1's occur only when n is two's power (A000079), and that there are no -1's in this sequence. See comments in A033879 and in A337339.
FORMULA
a(n) = A033879(A000290(n)).
MATHEMATICA
Table[2n^2-DivisorSigma[1, n^2], {n, 62}] (* James C. McMahon, Nov 24 2024 *)
PROG
(PARI)
A033879(n) = (n+n-sigma(n));
A377879(n) = A033879(n*n);
CROSSREFS
Cf. A000290, A000079 (conjectured to give positions of all 1's), A033879, A378231 [= a(A003961(n))].
Cf. also square array A083064.
Sequence in context: A286232 A147437 A147369 * A375363 A066480 A136394
KEYWORD
sign
AUTHOR
Antti Karttunen, Nov 23 2024
STATUS
approved