OFFSET
1,1
COMMENTS
Often a(2n+1) = a(2n) - 1. - Robert G. Wilson v, Jan 19 2007
EXAMPLE
a(1)=2 because (2)/1=2,
a(2)=4 because (3+5)/2=4,
a(3)=4 because (2+3+7)/3=4,
a(4)=7 because (3+5+7+13)/4=7,
a(5)=6 because (2+3+5+7+13)/5=6,
a(6)=11 because (3+5+7+11+17+23)/6=11,
a(7)=10 because (2+3+5+7+11+13+29)/7=10,
a(8)=13 because (3+5+7+11+13+17+19+29)/8=13,
a(9)=12 because (2+3+5+7+11+13+17+19+31)/9=12,
a(10)=17 because (3+5+7+11+13+17+19+23+29+43)/10=17, etc.
MATHEMATICA
f[n_] := Block[{k = 1, lst = Prime@ Range[ If[ OddQ@ n, 1, 2], n + 3]}, While[ Mod[Plus @@ Flatten@Subsets[lst, {n}, {k}], n] != 0, k++ ]; (Plus @@ Flatten@ Subsets[lst, {n}, {k}])/n]; Array[f, 65] (* Robert G. Wilson v, Jan 19 2007 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Giovanni Teofilatto, Mar 25 2005
EXTENSIONS
Edited, corrected and extended by Robert G. Wilson v, Jan 19 2007
STATUS
approved