OFFSET
1,1
MAPLE
N:= 24: # to get a(1) to a(N)
unknown:= N:
for k from 2 while unknown > 0 do
q:= numtheory:-bigomega(2^k-1);
if q <= N and not assigned(A[q]) then
A[q]:= k;
unknown:= unknown - 1;
fi
od:
seq(A[i], i=1..N); # Robert Israel, Oct 24 2014
PROG
(PARI) a(n) = {k = 1; while(bigomega(2^k-1) != n, k++); k; } \\ Michel Marcus, Nov 04 2013
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Artur Jasinski, Dec 11 2007
EXTENSIONS
a(15)-a(20) from Michel Marcus, Nov 04 2013
a(21)-a(24) from Derek Orr, Oct 23 2014
a(25)-a(34) from Jinyuan Wang, Jun 07 2019
STATUS
approved