OFFSET
1,2
COMMENTS
EXAMPLE
The binary indices of 65 are {1,7}, and the prime indices are {3,6}, so 65 is in the sequence.
The terms together with their prime indices begin:
1: {}
2: {1}
4: {1,1}
7: {4}
8: {1,1,1}
9: {2,2}
10: {1,3}
11: {5}
12: {1,1,2}
13: {6}
16: {1,1,1,1}
The terms together with their binary expansions and binary indices begin:
1: 1 ~ {1}
2: 10 ~ {2}
4: 100 ~ {3}
7: 111 ~ {1,2,3}
8: 1000 ~ {4}
9: 1001 ~ {1,4}
10: 1010 ~ {2,4}
11: 1011 ~ {1,2,4}
12: 1100 ~ {3,4}
13: 1101 ~ {1,3,4}
16: 10000 ~ {5}
MATHEMATICA
bix[n_]:=Join@@Position[Reverse[IntegerDigits[n, 2]], 1];
prix[n_]:=If[n==1, {}, Flatten[Cases[FactorInteger[n], {p_, k_}:>Table[PrimePi[p], {k}]]]];
Select[Range[100], Intersection[bix[#], prix[#]]=={}&]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Gus Wiseman, May 03 2024
STATUS
approved
