OFFSET
1,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 1..1000
MATHEMATICA
a[n_] := If[PrimeQ[n] || n == 1, n, If[EvenQ[n], 4, 7] ]; Table[a[n], {n, 1, 25}] (* G. C. Greubel, Oct 26 2016 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Mohammad K. Azarian, Dec 01 2007
STATUS
approved