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.

A258387 a(n) = (n+1)^n + n^(n-1).

This page as a plain text file.
%I A258387 #16 Sep 08 2022 08:46:12
%S A258387 3,11,73,689,8401,125425,2214801,45143873,1043046721,26937424601,
%T A258387 768945795289,24041093493169,817012858376625,29986640798644769,
%U A258387 1182114430632237601,49814113380273715457,2234572751614363400449,106313261857649938064809
%N A258387 a(n) = (n+1)^n + n^(n-1).
%H A258387 Daniel Suteu, <a href="/A258387/b258387.txt">Table of n, a(n) for n = 1..20</a>
%F A258387 a(n) = (n+1)^n + n^(n-1).
%e A258387 For n=3 the a(3) = 73.
%e A258387 (3+1)^3 + 3^(3-1) = 4^3 + 3^2.
%e A258387 4^3 + 3^2 = 64 + 9 = 73.
%t A258387 Array[(# + 1)^# + #^(# - 1) &, 20] (* _Vincenzo Librandi_, May 29 2015 *)
%o A258387 (Sidef)
%o A258387 func a(n) {
%o A258387     (n+1)**n + n**(n-1)
%o A258387 };
%o A258387 1.to(Math.inf).each { |n|
%o A258387     say a(n);
%o A258387 };
%o A258387 (Magma) [(n+1)^n + n^(n-1): n in [1..20]]; // _Vincenzo Librandi_, May 29 2015
%o A258387 (PARI) vector(10,n,(n+1)^n+n^(n-1)) \\ _Derek Orr_, Jun 01 2015
%Y A258387 Cf. A178922, A258384.
%K A258387 nonn,easy
%O A258387 1,1
%A A258387 _Daniel Suteu_, May 28 2015