login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A338935 a(n) = Sum_{d|n} (d^2 mod n). 2
0, 1, 1, 1, 1, 8, 1, 5, 1, 10, 1, 18, 1, 12, 20, 5, 1, 23, 1, 26, 17, 16, 1, 58, 1, 18, 10, 42, 1, 70, 1, 21, 32, 22, 40, 39, 1, 24, 23, 90, 1, 106, 1, 54, 71, 28, 1, 98, 1, 55, 44, 34, 1, 104, 37, 106, 29, 34, 1, 240, 1, 36, 77, 21, 65, 160, 1, 38, 56, 200, 1, 175, 1, 42, 60, 78, 94, 154, 1, 146 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,6
LINKS
EXAMPLE
a(6) = (1^2 mod 6) + (2^2 mod 6) + (3^2 mod 6) + (6^2 mod 6) = 1+4+3+0 = 8.
MAPLE
f:= n -> add(t^2 mod n, t = numtheory:-divisors(n)):
map(f, [$1..100]);
MATHEMATICA
Table[Total[Mod[Divisors[n]^2, n]], {n, 80}] (* Harvey P. Dale, Oct 11 2021 *)
PROG
(PARI) a(n) = sumdiv(n, d, lift(Mod(d, n)^2)); \\ Michel Marcus, Nov 16 2020
CROSSREFS
Cf. A000430 (a(n)=1), A338930 (a(n) is prime).
Sequence in context: A280040 A202284 A231772 * A200120 A154861 A153495
KEYWORD
nonn
AUTHOR
J. M. Bergot and Robert Israel, Nov 16 2020
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 6 09:39 EDT 2024. Contains 372293 sequences. (Running on oeis4.)