OFFSET
2,1
LINKS
Alois P. Heinz, Table of n, a(n) for n = 2..1000
EXAMPLE
a(6) = (2^6 - 1)/(2^3 - 1) = 63/7 = 9. - Emeric Deutsch, Jun 26 2009
MAPLE
with(numtheory): a := proc (n) options operator, arrow: (2^n-1)/(2^divisors(n)[tau(n)-1]-1) end proc: seq(a(n), n = 2 .. 40); # Emeric Deutsch, Jun 26 2009
MATHEMATICA
b[n_] := Divisors[n][[-2]];
a[n_] := (2^n - 1)/(2^b[n] - 1);
a /@ Range[2, 40] (* Jean-François Alcover, Nov 20 2020 *)
PROG
(PARI) a(n) = my(d=divisors(n)); (2^n-1)/(2^d[#d-1]-1); \\ Michel Marcus, Nov 20 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Jun 20 2009
EXTENSIONS
Extended by Emeric Deutsch, Jun 26 2009
STATUS
approved