login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A134675 Row sums of triangle A134674. 4
1, 4, 9, 15, 25, 30, 49, 55, 76, 80, 121, 112, 169, 154, 201, 207, 289, 237, 361, 310, 395, 374, 529, 420, 606, 520, 661, 604, 841, 618, 961, 799, 975, 884, 1165, 919, 1369, 1102, 1361, 1202, 1681, 1206, 1849, 1480, 1761, 1610, 2209, 1612, 2360, 1843, 2325, 2062, 2809, 2010, 2897, 2368, 2903, 2552, 3481 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
For n>1, a(n) = n^2 iff n is prime.
a(n) = A007434(n) + A001065(n). - Conjectured by John Mason and proved by Max Alekseyev, Jan 07 2015
EXAMPLE
a(4) = 15 = sum of row 4 terms of triangle A134674: (4, + 3 + 4 + 4).
MATHEMATICA
f1[p_, e_] := p^(2*e) - p^(2*e-2); f2[p_, e_] := (p^(e+1)-1)/(p-1); a[1] = 1; a[n_] := Times @@ f1 @@@ (f = FactorInteger[n]) + Times @@ f2 @@@ f - n; Array[a, 60] (* Amiram Eldar, Aug 22 2023 *)
PROG
(PARI) a(n) = sumdiv(n, d, d^2*moebius(n/d)+d)-n /* Max Alekseyev, Jan 07 2015 */
CROSSREFS
Sequence in context: A065893 A052116 A109641 * A050530 A278021 A102084
KEYWORD
nonn
AUTHOR
Gary W. Adamson, Nov 05 2007
EXTENSIONS
More terms from John Mason, Jan 07 2015
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 27 23:22 EDT 2024. Contains 372020 sequences. (Running on oeis4.)