The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A339771 a(n) = Sum_{i=0..n} Sum_{j=0..n} 2^max(i,j). 2
1, 7, 27, 83, 227, 579, 1411, 3331, 7683, 17411, 38915, 86019, 188419, 409603, 884739, 1900547, 4063235, 8650755, 18350083, 38797315, 81788931, 171966467, 360710147, 754974723, 1577058307, 3288334339, 6845104131, 14227079171, 29527900163, 61203283971 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
REFERENCES
Eric Billault, Walter Damin, Robert Ferréol, Rodolphe Garin, MPSI Classes Prépas - Khôlles de Maths, Exercices corrigés, Ellipses, 2012, exercice 2.22 (2), pp. 26, 43-44.
LINKS
FORMULA
a(n) = (2*n-1) * 2^(n+1) + 3.
G.f.: -(2*x+1)/((x-1)*(2*x-1)^2). - Alois P. Heinz, Dec 16 2020
E.g.f: 3*exp(x) + 2*exp(2*x)*(4*x - 1). - Stefano Spezia, Dec 16 2020
a(n) = 2*A066524(n+1) - A142964(n). - Kevin Ryde, Dec 17 2020
a(n) = (2*A027981(n)+1)/3 for n >= 1. - Hugo Pfoertner, Dec 17 2020
EXAMPLE
a(3) = 5*2^4 + 3 = 83.
MAPLE
seq((2*n-1)*2^(n+1)+3, n=0..40);
MATHEMATICA
Table[(2*n - 1)*2^(n + 1) + 3, {n, 0, 29}] (* Amiram Eldar, Dec 16 2020 *)
PROG
(PARI) a(n) = sum(i=0, n, sum(j=0, n, 2^max(i, j))); \\ Michel Marcus, Dec 16 2020
(Python)
def A339771():
a, b, c = 1, 7, 27
yield(a); yield(b)
while True:
yield c
z = 4*a - 8*b + 5*c
a, b, c = b, c, z
a = A339771()
print([next(a) for _ in range(30)]) # Peter Luschny, Dec 17 2020
CROSSREFS
Cf. A142964 (with min instead of max).
Partial sums of A014480.
Sequence in context: A338230 A038092 A059823 * A059769 A135914 A213588
KEYWORD
nonn,easy
AUTHOR
Bernard Schott, Dec 16 2020
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 May 14 20:17 EDT 2024. Contains 372533 sequences. (Running on oeis4.)