|
| |
|
|
A072516
|
|
Sum of remainders when n is divided by lesser squares.
|
|
0
| |
|
|
0, 0, 0, 0, 1, 2, 3, 0, 1, 3, 5, 3, 5, 7, 9, 7, 10, 4, 7, 6, 9, 12, 15, 14, 17, 21, 16, 16, 20, 24, 28, 12, 16, 20, 24, 15, 20, 25, 30, 31, 36, 41, 46, 47, 43, 48, 53, 38, 43, 24, 30, 32, 38, 35, 41, 43, 49, 55, 61, 63, 69, 75, 72, 58, 65, 72, 79, 82, 89, 96, 103, 61, 68, 75, 57, 60
(list; graph; refs; listen; history; internal format)
|
|
|
|
OFFSET
| 1,6
|
|
|
EXAMPLE
| a(25) = 17. The squares < 25 are 4, 9 and 16 and the remainders are 1, 7 and 9 and the sum = 17.
|
|
|
MATHEMATICA
| a[n_] := Sum[Mod[n, k^2], {k, 1, Floor[Sqrt[n]]}]
|
|
|
CROSSREFS
| Sequence in context: A106730 A089652 A112168 * A191588 A106450 A055137
Adjacent sequences: A072513 A072514 A072515 * A072517 A072518 A072519
|
|
|
KEYWORD
| nonn
|
|
|
AUTHOR
| Amarnath Murthy (amarnath_murthy(AT)yahoo.com), Jul 31 2002
|
|
|
EXTENSIONS
| More terms from Antonio G. Astudillo (afg_astudillo(AT)lycos.com), Apr 25 2003 and Dean Hickerson (dean.hickerson(AT)yahoo.com), Apr 28 2003
|
| |
|
|