login
Largest k such that the greatest prime factors from n to n+k are monotonically increasing.
3

%I #14 Dec 08 2022 07:30:21

%S 2,1,0,1,0,1,0,3,2,1,0,1,0,0,0,1,0,1,0,3,2,1,0,2,1,0,2,1,0,1,0,2,1,0,

%T 0,1,0,0,0,1,0,1,0,0,2,1,0,1,0,1,0,1,0,1,0,3,2,1,0,1,0,0,0,1,0,1,0,1,

%U 0,1,0,1,0,0,1,0,2,1,0,0,2,1,0,2,1,0,0,1,0,4,3,2,1,0,0,1,0,1,0,1,0,1,0,0,2

%N Largest k such that the greatest prime factors from n to n+k are monotonically increasing.

%C A006530(n+i) < A006530(n+j) for 0 <= i < j < a(n);

%C if a(n) > 0 then a(n+1) = a(n) - 1.

%F a(n) = 0 if and only if n is a term of A070087. - _Pontus von Brömssen_, Nov 09 2022

%e n=20: 20 = 5*2^2, 21 = 7*3, 22 = 11*2 and 23, followed by 24 = 3*2^3: therefore a(20)=3 (5 < 7 < 11 < 23 and 23 > 3).

%Y Cf. A006530, A070087, A079747, A358890.

%K nonn

%O 1,1

%A _Reinhard Zumkeller_, Jan 10 2003