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.

A247018 Numbers of the form 3*z^2 + z + 3 for some integer z.

This page as a plain text file.
%I A247018 #107 Jul 10 2021 10:25:31
%S A247018 3,5,7,13,17,27,33,47,55,73,83,105,117,143,157,187,203,237,255,293,
%T A247018 313,355,377,423,447,497,523,577,605,663,693,755,787,853,887,957,993,
%U A247018 1067,1105,1183,1223,1305,1347,1433,1477,1567,1613,1707,1755,1853,1903
%N A247018 Numbers of the form 3*z^2 + z + 3 for some integer z.
%C A247018 Note that z is allowed to be negative. - _N. J. A. Sloane_, Jul 09 2021
%C A247018 Subsequence of A134407.
%C A247018 Numbers k such that 12*k - 35 is a square. - _Robert Israel_, Sep 18 2014
%H A247018 Colin Barker, <a href="/A247018/b247018.txt">Table of n, a(n) for n = 1..1000</a>
%H A247018 <a href="/index/Rec#order_05">Index entries for linear recurrences with constant coefficients</a>, signature (1,2,-2,-1,1).
%F A247018 From _Colin Barker_, Feb 01 2018: (Start)
%F A247018 G.f.: x*(3 + 2*x - 4*x^2 + 2*x^3 + 3*x^4) / ((1 - x)^3*(1 + x)^2).
%F A247018 a(n) = a(n-1) + 2*a(n-2) - 2*a(n-3) - a(n-4) + a(n-5) for n>5. (End)
%p A247018 select(t -> issqr(12*t-35), [$1..1000]); # _Robert Israel_, Sep 18 2014
%t A247018 Union[Flatten[Table[3z^2+{z,-z}+3,{z,0,40}]]] (* or *) LinearRecurrence[ {1,2,-2,-1,1},{3,5,7,13,17},60] (* _Harvey P. Dale_, Jul 10 2021 *)
%o A247018 (PARI) Vec(x*(3 + 2*x - 4*x^2 + 2*x^3 + 3*x^4) / ((1 - x)^3*(1 + x)^2) + O(x^60)) \\ _Colin Barker_, Feb 01 2018
%Y A247018 Cf. A002522, A001105.
%K A247018 nonn,easy
%O A247018 1,1
%A A247018 _Matt C. Anderson_, Sep 09 2014
%E A247018 At some point in the history of this entry the definition was changed from the correct definition to the erroneous "a(n) = 3*n^2 + n + 3". I have restored the original definition, and I deleted some incorrect programs. Thanks to _Harvey P. Dale_ for pointing out that something was wrong. - _N. J. A. Sloane_, Jul 09 2021.