OFFSET
0,4
COMMENTS
b(n) = n^n mod (n+1) begins: 0, 1, 1, 3, 1, 5, 1, 7, 1, 9, 1, 11, 1, 13, 1, 15...
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..350
MATHEMATICA
Table[If[n==0, 1, Floor[n^n/(n+1)]], {n, 0, 30}] (* G. C. Greubel, Aug 16 2022 *)
PROG
(Python)
for n in range(55):
print(n**n // (n+1), end=", ")
(Magma) [Floor(n^n/(n+1)): n in [0..30]]; // G. C. Greubel, Aug 16 2022
(SageMath) [(n^n//(n+1)) for n in (0..30)] # G. C. Greubel, Aug 16 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Alex Ratushnyak, Aug 04 2012
STATUS
approved