Skip to content

A330405

OEIS Lean4

a(1) = 0; thereafter a(n) = (a(n-1)^2+1) mod n.

offset: 1
codomain: ℕ
n123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
A3304050121255256450125910617174172501252626526311725261437173826172033934301252629171044235852657372627417184922592620316245243114377465766561245534012526197774456612