A375928 Positions of adjacent non-prime-powers (exclusive) differing by more than 1.
1, 2, 3, 4, 6, 7, 10, 11, 12, 13, 14, 18, 21, 22, 25, 26, 29, 34, 35, 37, 39, 42, 43, 48, 49, 50, 55, 62, 65, 66, 69, 70, 73, 80, 83, 84, 86, 91, 92, 101, 102, 107, 112, 115, 116, 119, 124, 125, 134, 135, 138, 139, 150, 161, 164, 165, 168, 173, 174, 175, 182
Offset: 1
Keywords
Examples
The non-prime-powers (exclusive) are 1, 6, 10, 12, 14, 15, 18, 20, ... which increase by more than 1 after positions 1, 2, 3, 4, 6, 7, ...
Programs
-
Mathematica
ce=Select[Range[100],!PrimePowerQ[#]&]; Select[Range[Length[ce]-1],!ce[[#+1]]==ce[[#]]+1&]
Formula
The inclusive version is a(n+1) - 1.