OFFSET
1,2
COMMENTS
a(p) = p(p-1)/2 + p+1 = (p^2 + p + 2)/2, if p is a prime. a(2^n) = 2^(2n).
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
PROG
(Haskell)
a077582 = sum . a077581_row -- Reinhard Zumkeller, Sep 26 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Nov 14 2002
EXTENSIONS
More terms from Sascha Kurz, Jan 11 2003
STATUS
approved