This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A210849 #31 Feb 18 2025 05:57:16 %S A210849 1,2,13,37,314,365,73,13369,31226,1432954,1346393,10982633,59784881, %T A210849 986508685,197301737,12342639754,16335212753,165277755905,33055551181, %U A210849 12781804411945,2556360882389,25830314642530 %N A210849 a(n) = (A048899(n)^2 + 1)/5^n, n >= 0. %C A210849 a(n) is an integer (nonnegative) because b(n):=A048899(n) satisfies b(n)^2 + 1 == 0 (mod 5^n), n>=0. The solution of this congruence for n>=1, which satisfies also b(n) == 3 (mod 5), is b(n) = 3^(5^(n-1)) (mod 5^n), but this is inconvenient for computing b(n) for large n. Instead one can use the b(n) recurrence which follows immediately, and this is given in the formula field below. To prove that the given b(n) formula solves the first congruence one can analyze the binomial expansion of (10 - 1)^(5^(n-1)) + 1 and show that it is 0 (mod 5^n) term by term. The second congruence reduces to b(n) == 3^(5^(n-1)) (mod 5) which follows for n>=1 by induction. Because b(n) = 5^n - A048898(n) one could also use the result A048898(n) == 2 (mod 5) once this is proved. %C A210849 See also the comment on A210848 on two relevant theorems. %F A210849 a(n) = (b(n)^2 + 1)/5^n, n>=0, with b(n) = A048899(n) given by the recurrence b(n) = b(n-1)^5 (mod 5^n), n>=2, b(0):=0, b(1)=3 (this is the analog of the Mathematica Program by _Jean-François Alcover_ for A048898). %F A210849 a(n) - A210848(n) = A048899(n) - A048898(n) (== 1 mod 5 if n>0). - _Álvar Ibeas_, Feb 21 2017 %e A210849 a(0) = 1/1 = 1. %e A210849 a(3) = (68^2 + 1)/5^3 = 37 (b(3) = 18^5 (mod 5^3) = 68). %p A210849 b:=proc(n) option remember: if n=0 then 0 elif n=1 then 3 %p A210849 else modp(b(n-1)^5,5^n) fi end proc: %p A210849 [seq((b(n)^2+1)/5^n,n=0..29)]; %t A210849 b[n_] := b[n] = Which[n == 0, 0, n == 1, 3, True, Mod[b[n-1]^5, 5^n]]; Table[(b[n]^2+1)/5^n, {n, 0, 29}] (* _Jean-François Alcover_, Mar 05 2014, after Maple *) %Y A210849 Cf. A048899, A048898, A210848 (companion sequence). %K A210849 nonn,easy %O A210849 0,2 %A A210849 _Wolfdieter Lang_, Apr 28 2012