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

A103638
a(n) = Sum_{d|n, d==2 mod 3} d^2.
3
0, 4, 0, 4, 25, 4, 0, 68, 0, 29, 121, 4, 0, 200, 25, 68, 289, 4, 0, 429, 0, 125, 529, 68, 25, 680, 0, 200, 841, 29, 0, 1092, 121, 293, 1250, 4, 0, 1448, 0, 493, 1681, 200, 0, 2061, 25, 533, 2209, 68, 0, 2529, 289, 680, 2809, 4, 146, 3400, 0, 845, 3481, 429, 0, 3848
OFFSET
1,2
LINKS
MATHEMATICA
a[n_] := DivisorSum[n, #^2 &, Mod[#, 3] == 2 &]; Array[a, 100] (* Amiram Eldar, Jun 30 2023 *)
PROG
(PARI) a(n) = sumdiv(n, d, (d%3==2)*d^2); \\ Seiichi Manyama, Jun 30 2023
CROSSREFS
Sequence in context: A112149 A087736 A005075 * A129821 A126836 A055241
KEYWORD
nonn
AUTHOR
Ralf Stephan, Feb 11 2005
STATUS
approved