cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-2 of 2 results.

A062810 a(n) = Sum_{i=1..n} i^(n - i) + (n - i)^i.

Original entry on oeis.org

1, 3, 7, 17, 45, 131, 419, 1465, 5561, 22755, 99727, 465537, 2303829, 12037571, 66174411, 381560425, 2301307841, 14483421859, 94909491607, 646309392369, 4565559980989, 33401808977411, 252713264780595, 1974606909857945
Offset: 1

Views

Author

Olivier Gérard, Jun 23 2001

Keywords

Crossrefs

Programs

  • Mathematica
    Sum[i^(n - i) + (n - i)^i, {i, 1, n}]
  • PARI
    a(n) = sum(i=1, n, i^(n-i) + (n-i)^i); \\ Michel Marcus, Mar 24 2019

Formula

a(n) = 2 * A026898(n-1) - 1.
a(n) = 2 * A003101(n-1) + 1.

A062811 a(n) = Sum_{i=1..n} i^(n - i) + (i - n)^i.

Original entry on oeis.org

1, 1, 3, 9, 21, 65, 215, 713, 2809, 11425, 49339, 234825, 1148013, 6009153, 33216239, 190115849, 1152491825, 7244099617, 47387741107, 323632894729, 2280785100549, 16702573959489, 126413562204231, 986688266888777
Offset: 1

Views

Author

Olivier Gérard, Jun 23 2001

Keywords

Examples

			a(3) = 1^2 + (-2)^1 + 2^1 + (-1)^2 + 3^0 + 0^3 = 3.
		

Crossrefs

Programs

  • Mathematica
    Table[Sum[i^(n-i)+(-1)^i*(n-i)^i,{i,1,n}],{n,25}] (* Harvey P. Dale, Aug 10 2025 *)
  • PARI
    a(n) = sum(i=1, n, i^(n-i) + (i-n)^i); \\ Michel Marcus, Mar 24 2019

Extensions

Previous Mathematica program replaced by Harvey P. Dale, Aug 10 2025
Showing 1-2 of 2 results.