OFFSET
1,17
COMMENTS
A pattern emerges for certain values where ceiling(sqrt(n)) is the same.
LINKS
Michel Marcus, Table of n, a(n) for n = 1..10000
William Marcum, Desmos graph
FORMULA
a(n^2) = 0. - Michel Marcus, Oct 07 2020
MATHEMATICA
Table[Mod[n^2, Ceiling @ Sqrt[n]], {n, 100}] (* Amiram Eldar, Oct 05 2020 *)
PROG
(PARI) a(n) = lift(Mod(n, ceil(sqrt(n)))^2); \\ Michel Marcus, Oct 05 2020
CROSSREFS
KEYWORD
AUTHOR
William Phoenix Marcum, Oct 05 2020
STATUS
approved