login
Numbers k such that A282442(k) = k + 1.
2

%I #25 Aug 12 2022 09:17:39

%S 1,2,5,8,14,50,119,200,269,299,1154,5369,47249,48299,58643,130325,

%T 148979,282074,887480

%N Numbers k such that A282442(k) = k + 1.

%C a(18) > 10^6. - _Hakan Icoz_, Apr 09 2021

%H Mathematics Stack Exchange user Sheljohn, <a href="http://math.stackexchange.com/questions/2145924">A curious sequence</a>.

%o (Python)

%o def A282442():

%o n = 0

%o while True:

%o n += 1

%o h = n

%o k = 2

%o while h >= k:

%o h = h % k

%o h = n - h

%o k += 1

%o yield k

%o n=0

%o for i in A282442():

%o n += 1

%o if i == n+1:

%o print(n) # _Hakan Icoz_, Apr 09 2021

%Y Cf. A282442.

%K nonn,more

%O 1,2

%A _Peter Kagey_, Feb 15 2017

%E a(13)-a(19) from _Hakan Icoz_, Apr 09 2021