OFFSET
0,2
FORMULA
a(n) = A070321(2^n). - R. J. Mathar, May 31 2024
EXAMPLE
The terms together with their binary expansions and binary indices begin:
1: 1 ~ {1}
2: 10 ~ {2}
3: 11 ~ {1,2}
7: 111 ~ {1,2,3}
15: 1111 ~ {1,2,3,4}
31: 11111 ~ {1,2,3,4,5}
62: 111110 ~ {2,3,4,5,6}
127: 1111111 ~ {1,2,3,4,5,6,7}
255: 11111111 ~ {1,2,3,4,5,6,7,8}
511: 111111111 ~ {1,2,3,4,5,6,7,8,9}
1023: 1111111111 ~ {1,2,3,4,5,6,7,8,9,10}
2047: 11111111111 ~ {1,2,3,4,5,6,7,8,9,10,11}
4094: 111111111110 ~ {2,3,4,5,6,7,8,9,10,11,12}
8191: 1111111111111 ~ {1,2,3,4,5,6,7,8,9,10,11,12,13}
16383: 11111111111111 ~ {1,2,3,4,5,6,7,8,9,10,11,12,13,14}
32767: 111111111111111 ~ {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15}
MATHEMATICA
Table[NestWhile[#-1&, 2^n, !SquareFreeQ[#]&], {n, 0, 15}]
PROG
(PARI) a(n) = my(k=2^n); while (!issquarefree(k), k--); k; \\ Michel Marcus, May 29 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Gus Wiseman, May 27 2024
STATUS
approved