A375740 Numbers k such that A007916(k+1) - A007916(k) = 1. In other words, the k-th non-perfect-power is 1 less than the next.
1, 3, 4, 6, 7, 8, 9, 10, 12, 13, 14, 15, 16, 17, 18, 21, 22, 23, 25, 26, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 70, 71, 72, 73, 74, 75, 76, 77
Offset: 1
Keywords
Examples
The non-perfect-powers are 2, 3, 5, 6, 7, 10, 11, 12, 13, ... which increase by one after positions 1, 3, 4, 6, ...
Crossrefs
Programs
-
Mathematica
radQ[n_]:=n>1&&GCD@@Last/@FactorInteger[n]==1; Join@@Position[Differences[Select[Range[100],radQ]],1]
-
Python
from itertools import count, islice from sympy import perfect_power def A375740_gen(): # generator of terms a, b = -1, 0 for n in count(2): c = not perfect_power(n) if c: a += 1 if b&c: yield a b = c A375740_list = list(islice(A375740_gen(), 52)) # Chai Wah Wu, Sep 11 2024
Comments