login
k times k+4 gives the concatenation of two numbers m and m-5.
5

%I #13 Feb 24 2024 22:04:00

%S 89,9077,9899,733672,998999,88225293,99989999,8900869206,9296908810,

%T 9604060395,9999899999,326666333265,673333666732,700730927006,

%U 972603739725,999998999999,34519562953735,39737862788836,49917309624954,50082690375043,60262137211161,65480437046262

%N k times k+4 gives the concatenation of two numbers m and m-5.

%H Chai Wah Wu, <a href="/A116254/b116254.txt">Table of n, a(n) for n = 1..3000</a>

%o (Python)

%o from itertools import count, islice

%o from sympy import sqrt_mod

%o def A116254_gen(): # generator of terms

%o for j in count(0):

%o b = 10**j

%o a = b*10+1

%o for k in sorted(sqrt_mod(-1,a,all_roots=True)):

%o m = (k**2+1)//a

%o if a*(b+4) <= k**2+1 < a*(a+3):

%o yield k-2

%o A116254_list = list(islice(A116254_gen(),40)) # _Chai Wah Wu_, Feb 19 2024

%Y Cf. A054214, A116248, A116253, A116255, A116260.

%K nonn,base

%O 1,1

%A _Giovanni Resta_, Feb 06 2006

%E a(19)-a(22) from _Chai Wah Wu_, Feb 19 2024