login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A259164
Positive heptagonal numbers (A000566) that are squares (A000290) divided by 2.
3
18, 1877922, 194706720450, 20187582187830642, 2093088896203949915058, 217015642916030352905224578, 22500615886726770153715544792802, 2332908856150589340161504762302084050, 241880656000904788079898366611289133690962
OFFSET
1,1
COMMENTS
Intersection of A000566 and A001105 (even squares divided by 2). - Michel Marcus, Jun 20 2015
FORMULA
G.f.: -18*x*(x^2+646*x+1) / ((x-1)*(x^2-103682*x+1)).
EXAMPLE
18 is in the sequence because 18 is the 3rd heptagonal number, and 2*18 is the 6th square.
MATHEMATICA
LinearRecurrence[{103683, -103683, 1}, {18, 1877922, 194706720450}, 20] (* Vincenzo Librandi, Jun 20 2015 *)
PROG
(PARI) Vec(-18*x*(x^2+646*x+1)/((x-1)*(x^2-103682*x+1)) + O(x^20))
KEYWORD
nonn,easy
AUTHOR
Colin Barker, Jun 19 2015
STATUS
approved