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.

Showing 1-3 of 3 results.

A271713 Numbers n such that 3*n - 5 is a square.

Original entry on oeis.org

2, 3, 7, 10, 18, 23, 35, 42, 58, 67, 87, 98, 122, 135, 163, 178, 210, 227, 263, 282, 322, 343, 387, 410, 458, 483, 535, 562, 618, 647, 707, 738, 802, 835, 903, 938, 1010, 1047, 1123, 1162, 1242, 1283, 1367, 1410, 1498, 1543, 1635, 1682, 1778, 1827, 1927, 1978, 2082, 2135, 2243, 2298
Offset: 1

Views

Author

Juri-Stepan Gerasimov, Apr 12 2016

Keywords

Comments

Quasipolynomial of order 2 and degree 2. - Charles R Greathouse IV, Apr 12 2016
From Ray Chandler, Apr 13 2016: (Start)
Square roots of resulting squares gives A001651.
Sequence is the union of A141631 and A271740. (End)

Examples

			a(3) = 7 because 3*7 - 5 = 16 = 4^2.
		

Crossrefs

Cf. numbers n such that 3*n + k is a square: A120328 (k=-6), this sequence (k=-5), A056107 (k=-3), A257083 (k=-2), A033428 (k=0), A001082 (k=1), A080663 (k=3), A271675 (k=4), A100536 (k=6).

Programs

Formula

G.f.: x*(2 + x + x^3 + 2*x^4)/((1 - x)^3*(1 + x)^2). - Ilya Gutkovskiy, Apr 12 2016
a(n) = (3/2)*n^2 + O(n). - Charles R Greathouse IV, Apr 12 2016
a(n) = a(n-1) + 2*a(n-2) - 2*a(n-3) - a(n-4) + a(n-5) for n>5. - Wesley Ivan Hurt, Apr 13 2016

A271723 Numbers k such that 3*k - 8 is a square.

Original entry on oeis.org

3, 4, 8, 11, 19, 24, 36, 43, 59, 68, 88, 99, 123, 136, 164, 179, 211, 228, 264, 283, 323, 344, 388, 411, 459, 484, 536, 563, 619, 648, 708, 739, 803, 836, 904, 939, 1011, 1048, 1124, 1163, 1243, 1284, 1368, 1411, 1499, 1544, 1636, 1683, 1779, 1828, 1928, 1979, 2083, 2136, 2244, 2299
Offset: 1

Views

Author

Juri-Stepan Gerasimov, Apr 13 2016

Keywords

Comments

Square roots of resulting squares gives A001651. - Ray Chandler, Apr 14 2016

Examples

			a(1) = 3 because 3*3 - 8 = 1^2.
		

Crossrefs

Cf. A001651.
Cf. numbers n such that 3*n + k is a square: this sequence (k=-8), A120328 (k=-6), A271713 (k=-5), A056107 (k=-3), A257083 (k=-2), A033428 (k=0), A001082 (k=1), A080663 (k=3), A271675 (k=4), A100536 (k=6), A271741 (k=7), A067725 (k=9).

Programs

  • Magma
    [n: n in [1..2400] | IsSquare(3*n-8)];
    
  • Maple
    seq(seq(((3*m+k)^2+8)/3, k=1..2),m=0..50); # Robert Israel, Dec 05 2016
  • Mathematica
    Select[Range@ 2400, IntegerQ@ Sqrt[3 # - 8] &] (* Bruno Berselli, Apr 14 2016 *)
    LinearRecurrence[{1,2,-2,-1,1},{3,4,8,11,19},60] (* Harvey P. Dale, Oct 02 2020 *)
  • Python
    from gmpy2 import is_square
    [n for n in range(3000) if is_square(3*n-8)] # Bruno Berselli, Dec 05 2016
    
  • Python
    [(6*(n-1)*n-(2*n-1)*(-1)**n+23)/8 for n in range(1, 60)] # Bruno Berselli, Dec 05 2016

Formula

From Ilya Gutkovskiy, Apr 13 2016: (Start)
G.f.: x*(3 + x - 2*x^2 + x^3 + 3*x^4)/((1 - x)^3*(1 + x)^2).
a(n) = (6*(n - 1)*n - (2*n - 1)*(-1)^n + 23)/8. (End)

A271676 Prime powers k such that 3k + 4 is a perfect square.

Original entry on oeis.org

4, 7, 32, 64
Offset: 1

Views

Author

Juri-Stepan Gerasimov, Apr 12 2016

Keywords

Comments

This sequence is complete. For proof see the link. - Altug Alkan, Apr 15 2016

Examples

			4 is in this sequence because 3*4 + 4 = 16 = 4^2,
7 is in this sequence because 3*7 + 4 = 25 = 5^2,
32 is in this sequence because 3*32 + 4 = 100 = 10^2,
64 is in this sequence because 3*64 + 4 = 196 = 14^2.
		

Crossrefs

Programs

  • Magma
    [n: n in [2..10000000] | IsPrimePower(n) and IsSquare(3*n + 4)];
    
  • Mathematica
    Select[Range[10^4], PrimePowerQ@ # && IntegerQ@ Sqrt[3 # + 4] &] (* Michael De Vlieger, Apr 12 2016 *)
  • PARI
    lista(nn) = for(n=1, nn, if(isprimepower(n) && issquare(3*n+4), print1(n, ", "))); \\ Altug Alkan, Apr 12 2016
Showing 1-3 of 3 results.