OFFSET
2,1
COMMENTS
LINKS
N. J. A. Sloane, Table of n, a(n) for n = 2..1000
O. N. Karpenkov, On examples of difference operators for {0,1}-valued functions over finite sets, Funct. Anal. Other Math. 1 (2006), 175-180. [The function q(n)]
O. N. Karpenkov, On examples of difference operators for {0,1}-valued functions over finite sets, arXiv:math/0611940 [math.CO], 2006.
MAPLE
(First load the b-file for A014664 as the array b1.)
a := proc(i) local p, g; p:=ithprime(i); g:=b1[i-1]; if g mod 2 = 0 then p*(2^(g/2)-1) else 2^g-1; fi; end;
MATHEMATICA
g[n_]:=MultiplicativeOrder[2, Prime[n]]; a[n_]:=If[EvenQ[g[n]], Prime[n]*(2^(g[n]/2)-1), 2^g[n]-1]; Table[a[n], {n, 2, 28}] (* James C. McMahon, Apr 16 2025 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Feb 24 2008
STATUS
approved
