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!)
A158563 a(n) = 32*n^2 - 1. 4

%I #48 Mar 09 2023 02:44:24

%S 31,127,287,511,799,1151,1567,2047,2591,3199,3871,4607,5407,6271,7199,

%T 8191,9247,10367,11551,12799,14111,15487,16927,18431,19999,21631,

%U 23327,25087,26911,28799,30751,32767,34847,36991,39199,41471,43807,46207,48671,51199,53791

%N a(n) = 32*n^2 - 1.

%C The identity (32*n^2-1)^2 - (256*n^2-16)*(2*n)^2 = 1 can be written as a(n)^2 - A158562(n)*A005843(n)^2 = 1. [comment rewritten by _R. J. Mathar_, Oct 16 2009]

%C From _Omar E. Pol_, Apr 21 2021: (Start)

%C Sequence found by reading the line from 31, in the direction 31, 127, ..., in the rectangular spiral whose vertices are the generalized 18-gonal numbers A274979.

%C The spiral begins as follows:

%C 46_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _18

%C | |

%C | 0 |

%C | |_ _ _ _ _ _ _ _ _ _ _ _ _ _|

%C | 1 15

%C |

%C 51

%C (End)

%H Vincenzo Librandi, <a href="/A158563/b158563.txt">Table of n, a(n) for n = 1..1000</a>

%H Vincenzo Librandi, <a href="https://web.archive.org/web/20090309225914/http://mathforum.org/kb/message.jspa?messageID=5785989&amp;tstart=0">X^2-AY^2=1</a>, Math Forum, 2007. [Wayback Machine link]

%H <a href="/index/Rec#order_03">Index entries for linear recurrences with constant coefficients</a>, signature (3,-3,1).

%F G.f.: x*(-31-34*x+x^2)/(x-1)^3.

%F a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3).

%F a(n) = A244082(n) - 1. - _Omar E. Pol_, Apr 21 2021

%F From _Amiram Eldar_, Mar 09 2023: (Start)

%F Sum_{n>=1} 1/a(n) = (1 - cot(Pi/(4*sqrt(2)))*Pi/(4*sqrt(2)))/2.

%F Sum_{n>=1} (-1)^(n+1)/a(n) = (cosec(Pi/(4*sqrt(2)))*Pi/(4*sqrt(2)) - 1)/2. (End)

%t 32 Range[40]^2 - 1 (* _Harvey P. Dale_, Mar 04 2011 *)

%t CoefficientList[Series[(- 31 - 34 x + x^2) / (x - 1)^3, {x, 0, 40}], x] (* _Vincenzo Librandi_, Sep 11 2013 *)

%o (Magma) [32*n^2-1: n in [1..40]]; // _Vincenzo Librandi_, Sep 11 2013

%o (PARI) a(n)=32*n^2-1 \\ _Charles R Greathouse IV_, Jun 17 2017

%Y Cf. A005843, A010021, A158562, A158575, A244082.

%Y Cf. A274979 (generalized 18-gonal numbers).

%K nonn,easy

%O 1,1

%A _Vincenzo Librandi_, Mar 21 2009

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 19 21:09 EDT 2024. Contains 371798 sequences. (Running on oeis4.)