OFFSET
1,3
LINKS
Antti Karttunen (terms 1..257) & Hans Havermann, Table of n, a(n) for n = 1..1032
MATHEMATICA
Table[Times @@ MapIndexed[(Prime@ First@ #2)^#1 &, #] &@ If[Length@# == 1 && #[[1, 1]] == 1, {0}, Reverse@ Sort@ #[[All, -1]]] &@ FactorInteger[ (2^n - (-1)^n)/3], {n, 120}] (* Michael De Vlieger, Nov 21 2016 *)
PROG
(PARI)
A001045(n) = (2^n - (-1)^n) / 3;
A046523(n) = my(f=vecsort(factor(n)[, 2], , 4), p); prod(i=1, #f, (p=nextprime(p+1))^f[i]) \\ From Charles R Greathouse IV, Aug 17 2011
for(n=1, 257, write("b278165.txt", n, " ", A278165(n)));
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Nov 19 2016
STATUS
approved