A207832
Numbers x such that 20*x^2 + 1 is a perfect square.
Original entry on oeis.org
0, 2, 36, 646, 11592, 208010, 3732588, 66978574, 1201881744, 21566892818, 387002188980, 6944472508822, 124613502969816, 2236098580947866, 40125160954091772, 720016798592704030
Offset: 0
- Bruno Berselli, Table of n, a(n) for n = 0..500
- Hacène Belbachir, Soumeya Merwa Tebtoub, and László Németh, Ellipse Chains and Associated Sequences, J. Int. Seq., Vol. 23 (2020), Article 20.8.5.
- Index entries for linear recurrences with constant coefficients, signature (18,-1).
-
m:=16; R:=PowerSeriesRing(Integers(), m); [0] cat Coefficients(R!(2*x/(1-18*x+x^2))); // Bruno Berselli, Jun 19 2019
-
readlib(issqr):for x from 1 to 720016798592704030 do if issqr(20*x^2+1) then print(x) fi od;
-
LinearRecurrence[{18, -1}, {0, 2}, 16] (* Bruno Berselli, Feb 21 2012 *)
Table[2 ChebyshevU[-1 + n, 9], {n, 0, 16}] (* Herbert Kociemba, Jun 05 2022 *)
-
makelist(expand(((2+sqrt(5))^(2*n)-(2-sqrt(5))^(2*n))/(4*sqrt(5))), n, 0, 15); /* Bruno Berselli, Jun 19 2019 */
A084069
Numbers k such that 7*k^2 = floor(k*sqrt(7)*ceiling(k*sqrt(7))).
Original entry on oeis.org
1, 3, 17, 48, 271, 765, 4319, 12192, 68833, 194307, 1097009, 3096720, 17483311, 49353213, 278635967, 786554688, 4440692161, 12535521795, 70772438609, 199781794032, 1127918325583, 3183973182717, 17975920770719, 50743789129440
Offset: 1
-
CoefficientList[Series[(1+3x+x^2)/(1-16x^2+x^4),{x,0,30}],x] (* or *) LinearRecurrence[{0,16,0,-1},{1,3,17,48},31] (* Harvey P. Dale, Oct 31 2011 *)
A053410
a(1) = 0, a(2) = 16, a(2n+1) = 10*a(2n) - a(2n-1), a(2n) = 10*a(2n-1) - a(2n-2) + 16.
Original entry on oeis.org
0, 16, 160, 1600, 15840, 156816, 1552320, 15366400, 152111680, 1505750416, 14905392480, 147548174400, 1460576351520, 14458215340816, 143121577056640, 1416757555225600, 14024453975199360, 138827782196768016
Offset: 1
Antreas P. Hatzipolakis (xpolakis(AT)otenet.gr), Jan 09 2000
- O. Bottema: Verscheidenheden XXVI. Het vraagstuk van Malfatti, Euclides 25 (1949-50), pp. 144-149. [in Dutch].
- O. Bottema, The Malfatti problem (translation of Het vraagstuk van Malfatti), Forum Geom. 1 (2001) 43-50.
-
I:=[0,16,160,1600]; [n le 4 select I[n] else 10*Self(n-1) - 10*Self(n-3) +Self(n-4): n in [1..30]]; // G. C. Greubel, May 25 2018
-
LinearRecurrence[{10,0,-10,1}, {0,16,160,1600}, 50] (* G. C. Greubel, May 25 2018 *)
-
x='x+O('x^30); concat([0], Vec(-16*x^2/((x-1)*(x+1)*(x^2-10*x+1)))) \\ G. C. Greubel, May 25 2018
A278438
Numbers m such that T(m) + 2*T(m+1) is a square, where T = A000217.
Original entry on oeis.org
7, 799, 78407, 7683199, 752875207, 73774087199, 7229107670407, 708378777612799, 69413891098384007, 6801852948864019999, 666512175097575576007, 65311391306613542428799, 6399849835873029582446407, 627119972524250285537319199, 61451357457540654953074835207
Offset: 1
Cf.
A278310: numbers m such that T(m) + 3*T(m+1) is a square.
-
Iv:=[7, 799]; [n le 2 select Iv[n] else 98*Self(n-1)-Self(n-2)+112: n in [1..20]];
-
P:=proc(q) local n; for n from 1 to q do if type(sqrt((3*n^2+7*n+4)/2),integer) then print(n); fi; od; end: P(10^9); # Paolo P. Lava, Nov 25 2016
-
Table[((5 + 2 Sqrt[6])^(2 n) + (5 - 2 Sqrt[6])^(2 n))/12 - 7/6, {n, 1, 20}]
RecurrenceTable[{a[1] == 7, a[2] == 799, a[n] == 98 a[n - 1] - a[n - 2] + 112}, a, {n, 1, 20}]
LinearRecurrence[{99,-99,1},{7,799,78407},20] (* Harvey P. Dale, Oct 18 2024 *)
-
Vec(x*(7 + 106*x - x^2)/((1 - x)*(1 - 98*x + x^2)) + O(x^20)) \\ Colin Barker, Nov 27 2016
-
def A278438():
a, b = 7, 799
yield a
while True:
yield b
a, b = b, 98*b - a + 112
a = A278438(); print([next(a) for in range(15)]) # _Peter Luschny, Nov 24 2016
A290284
Number of pairs of integers (x,y) satisfying the Diophantine equation x^2 - A000037(n)*y^2 = m such that x/y gives a convergent series towards sqrt(A000037(n)).
Original entry on oeis.org
3, 3, 5, 4, 5, 4, 7, 6, 5, 15, 8, 5, 9, 7, 12, 6, 10, 12, 9, 6, 11, 9, 12, 21, 7, 17, 9, 10, 11, 7, 13, 10, 9, 9, 19, 8, 20, 15, 13, 24, 12, 8, 15, 12, 16, 27, 16, 13, 9, 14, 27, 17, 12
Offset: 1
For A000037(4) = 6, a(4) = 4 we have the following sequences of pairs (x,y):
m = 1: x(0) = 1, x(1) = 5, x(i) = 10*x(i-1) - x(i-2) as in A001079(i) and y(0) = 0, y(1) = 2, y(i) = 10*y(i-1) - y(i-2) as in A001078(i);
m = -6: x(0) = 0, x(1) = 12, x(i) = 10*x(i-1) - x(i-2) as in A004291(i) (for i > 0) and y(0) = 1, y(1) = 5, y(i) = 10*y(i-1) - y(i-2) as in A001079(i);
m = -5: x(0) = 1, x(1) = 17, x(i) = 10*x(i-1) - x(i-2) and y(0) = 1, y(1) = 7, y(i) = 10*y(i-1) - y(i-2);
m = -2: x(0) = 2, x(1) = 22, x(i) = 10*x(i-1) - x(i-2) and y(0) = 1, y(1) = 9, y(i) = 10*y(i-1) - y(i-2) as in A072256(i+1).
In some cases a combination of A000037(n) and m has more than one integer pair sequence, for example A000037(5) = 7 and m = -3 has two integer pair sequences:
x(0) = 2, x(1) = 37, x(i) = 16*x(i-1) - x(i-2) and y(0) = 1, y(1) = 14, y(i) = 16*y(i-1) - y(i-2);
x(0) = -2, x(1) = 5, x(i) = 16*x(i-1) - x(i-2) and y(0) = 1, y(1) = 2, y(i) = 16*y(i-1) - y(i-2).
For A000037(4) = 6, the sequence observed from x^2 - 6y^2 = 3 is not in the convergent series of sqrt(6) due to for example x1/y1 = 2643/1079 = sqrt(6) + 5.259842e-7 while the smaller x,y pair, x2/y2 = 2158/881 from x^2 - 6y^2 = -2 is a fraction closer to sqrt(5), 2158/881 = sqrt(6) - 5.259841e-7.
-
from fractions import Fraction
def FracSqrt(p):
a = Fraction(p/1)
b = Fraction(1/1)
e = Fraction(10**(-200))
while a-b > e:
a = (a+b)/2
b = p/a
return a
print("number: ")
pp = int(input())
p = FracSqrt(pp)
n = 0
while n >= 0:
n = n+1
q = p.limit_denominator(n)
if (n == 1) or (q != q0):
t = q*n
m = t*t-pp*n*n
print(n,q,m)
q0 = q
Comments