A375736 Length of the n-th maximal anti-run of adjacent (increasing by more than one at a time) non-perfect-powers.
1, 2, 1, 2, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 3, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
Offset: 1
Keywords
Examples
The initial anti-runs are the following, whose lengths are a(n): (2) (3,5) (6) (7,10) (11) (12) (13) (14) (15,17) (18) (19) (20) (21) (22) (23) (24,26,28)
Crossrefs
Programs
-
Mathematica
radQ[n_]:=n>1&&GCD@@Last/@FactorInteger[n]==1; Length/@Split[Select[Range[100],radQ],#1+1!=#2&]//Most
Comments