A210848 a(n) = (A048898(n)^2 + 1)/5^n, n >= 0.
1, 1, 2, 26, 53, 1354, 13562, 26858, 200965, 40193, 3859882, 13496122, 62298370, 12459674, 4106065226, 4044371993, 69072101242, 218014644394, 3137550252170, 627510050434, 66696011833378, 280704828874769, 2167389209973245, 433477841994649, 41870795375097221, 40277856145834642
Offset: 0
Examples
a(0) = 1/1 = 1. a(3) = (57^2 + 1)/5^3 = 26 (b(3) = 7^5 (mod 5^3) = 57).
References
- T. Nagell, Introduction to Number Theory, Chelsea Publishing Company, New York, 1964.
Links
- Paolo Xausa, Table of n, a(n) for n = 0..1000
Programs
-
Maple
b:=proc(n) option remember: if n=0 then 0 elif n=1 then 2 else modp(b(n-1)^5,5^n) fi: end proc: [seq((b(n)^2+1)/5^n,n=0..29)];
-
Mathematica
Join[{1}, MapIndexed[(#^2 + 1)/5^#2[[1]] &, FoldList[PowerMod[#, 5, 5^#2] &, 2, Range[2, 25]]]] (* Paolo Xausa, Jan 14 2025 *)
Formula
a(n) = (A048898(n)^2 + 1)/5^n.
Comments