OFFSET
0,5
LINKS
A. W. Hales and N. Hartsfield, The directed genus of the de Bruijn graph, Discrete Math., 309 (2009), 5259-5263.
FORMULA
See Maple code.
MAPLE
with(numtheory);
f:=proc(n) local t1, t2, t3, i;
t1:=divisors(n+2); t2:=convert(t1, list);
t3:=add( phi(t2[i])*2^((n+2)/t2[i]), i =1..nops(t2));
2^(n-1) + 1 - t3/(2*(n+2));
end;
PROG
(PARI) a(n) = 2^(n-1) + 1 - sumdiv(n+2, d, 2^((n+2)/d)*eulerphi(d))/(2*(n+2)); \\ Michel Marcus, Mar 02 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Sep 15 2009
STATUS
approved