OFFSET
1,2
COMMENTS
For odd n either a(n) or a(n)+1 is in A024622 (unless a(n) = 0), corresponding to cases where the smaller or the larger term in the pair of consecutive prime powers, respectively, is a power of 2. - Pontus von Brömssen, Sep 27 2024
LINKS
Pontus von Brömssen, Table of n, a(n) for n = 1..60
FORMULA
A057820(a(n)) = n whenever a(n) > 0. - Pontus von Brömssen, Sep 24 2024
EXAMPLE
MATHEMATICA
mnrm[s_]:=If[Min@@s==1, mnrm[DeleteCases[s-1, 0]]+1, 0];
q=Differences[Select[Range[100], #==1||PrimePowerQ[#]&]];
Table[Position[q, k][[1, 1]], {k, mnrm[q]}]
CROSSREFS
For compression instead of first appearances we have A376308.
For run-lengths instead of first appearances we have A376309.
For run-sums instead of first appearances we have A376310.
For squarefree numbers instead of prime-powers we have A376311.
The sorted version is A376340.
KEYWORD
nonn
AUTHOR
Gus Wiseman, Sep 22 2024
EXTENSIONS
Definition modified by Pontus von Brömssen, Sep 26 2024
More terms from Pontus von Brömssen, Sep 27 2024
STATUS
approved