OFFSET
1,1
LINKS
Robert Price, Table of n, a(n) for n = 1..10000
FORMULA
MAPLE
with(numtheory): A258774:=n->1+sigma(n)+sigma(n)^2: seq(A258774(n), n=1..100); # Wesley Ivan Hurt, Jul 09 2015
MATHEMATICA
Table[1 + DivisorSigma[1, n] + DivisorSigma[1, n]^2, {n, 10000}]
Table[Cyclotomic[3, DivisorSigma[1, n]], {n, 10000}]
PROG
(Magma) [1+SumOfDivisors(n)+ SumOfDivisors(n)^2: n in [1..50]]; // Vincenzo Librandi, Jun 10 2015
(PARI) a(n)=my(s=sigma(n)); s^2+s+1 \\ Charles R Greathouse IV, Jun 10 2015
(Python)
from sympy import divisor_sigma
def A258774(n):
....return (lambda x: x*(x+1)+1)(divisor_sigma(n)) # Chai Wah Wu, Jun 10 2015
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Robert Price, Jun 09 2015
STATUS
approved