OFFSET
1,5
COMMENTS
Unbounded sequence.
From A373669 we see that 10 first appears at a(28195574) = 10.
Also run-lengths of non-prime-powers (assuming 1 is not a prime-power), where a run of a sequence (in this case A361102) is an interval of positions at which consecutive terms differ by one. Also nonzero differences of consecutive prime-powers minus one. - Gus Wiseman, Jun 18 2024
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..10000
EXAMPLE
a(5)=2 because the fifth run of ones in A014963 is of length 2.
MATHEMATICA
Length /@ SplitBy[Table[Exp[MangoldtLambda[n]], {n, 400}], # != 1 &][[ ;; -1 ;; 2]] (* Michael De Vlieger, Mar 21 2024 *)
DeleteCases[Differences[Select[Range[100], PrimePowerQ]]-1, 0] (* Gus Wiseman, Jun 18 2024 *)
PROG
(PARI) \\ b(n) returns boolean of A014963(n) == 1.
b(n)={my(t); !isprime(if(ispower(n, , &t), t, n))}
seq(n)={my(k=1, i=0, L=List()); while(#L<n, i++; if(!b(i), if(i>k, listput(L, i-k)); k = i+1)); Vec(L)} \\ Andrew Howroyd, Jan 02 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Franz Vrabec, Sep 27 2005
EXTENSIONS
Terms a(41) and beyond from Andrew Howroyd, Jan 02 2020
STATUS
approved