OFFSET
1,2
LINKS
FORMULA
MATHEMATICA
a249745[n_Integer] := Module[{f, p, a064989, a007310, a},
f[x_] := Transpose@FactorInteger[x];
p[x_] := Which[
x == 1, 1,
x == 2, 1,
True, NextPrime[x, -1]];
a064989[x_] := Times @@ Power[p /@ First[f[x]], Last[f[x]]];
a007310[x_] := Select[Range[x], MemberQ[{1, 5}, Mod[#, 6]] &];
a[x_] := (1 + a064989 /@ a007310[x])/2;
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Nov 23 2014
STATUS
approved