login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A104297
a(n) = prime((a(n-1) + 1)/2), a(1)=21.
2
21, 31, 53, 103, 239, 659, 2213, 8887, 42473, 240151, 1584607, 12069311, 105036509, 1034651039, 11438277847, 142253144233, 1946420671121, 29165259660989
OFFSET
1,1
COMMENTS
All primes except a(1) which is any odd integer; a(1)=21 the least integer missing in A104296 and A104298.
MATHEMATICA
a[1] = 21; a[n_] := a[n] = Prime[(a[n - 1] + 1)/2]; Table[ a[n], {n, 18}] (* Robert G. Wilson v, Mar 24 2005 *)
KEYWORD
easy,nonn
AUTHOR
Zak Seidov, Mar 20 2005
EXTENSIONS
a(14)-a(18) from Robert G. Wilson v, Mar 24 2005
STATUS
approved