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!)
A254626 Indices of triangular numbers (A000217) that are also centered pentagonal numbers (A005891). 3
1, 3, 23, 61, 421, 1103, 7563, 19801, 135721, 355323, 2435423, 6376021, 43701901, 114413063, 784198803, 2053059121, 14071876561, 36840651123, 252509579303, 661078661101, 4531100550901, 11862575248703, 81307300336923, 212865275815561, 1459000305513721 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Also positive integers x in the solutions to x^2 - 5*y^2 + x + 5*y - 2 = 0, the corresponding values of y being A254627.
LINKS
FORMULA
a(n) = a(n-1) + 18*a(n-2) - 18*a(n-3) - a(n-4) + a(n-5).
G.f.: -x*(x+1)^2*(x^2+1) / ((x-1)*(x^2-4*x-1)*(x^2+4*x-1)).
a(n) = (-2 + (2-r)^n - (-2-r)^n*(-2+r) + 2*(-2+r)^n + r*(-2+r)^n + (2+r)^n)/4 where r = sqrt(5). - Colin Barker, Nov 25 2016
EXAMPLE
3 is in the sequence because the 3rd triangular number is 6, which is also the 2nd centered pentagonal number.
PROG
(PARI) Vec(-x*(x+1)^2*(x^2+1)/((x-1)*(x^2-4*x-1)*(x^2+4*x-1)) + O(x^100))
CROSSREFS
Sequence in context: A141047 A196538 A216418 * A362540 A262769 A298393
KEYWORD
nonn,easy
AUTHOR
Colin Barker, Feb 03 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 30 09:09 EDT 2024. Contains 372131 sequences. (Running on oeis4.)