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.

A059853 Period of continued fraction for sqrt(n^2+3), n >= 2.

This page as a plain text file.
%I A059853 #20 Aug 16 2024 23:12:47
%S A059853 4,2,6,4,2,6,10,2,12,16,2,16,20,2,10,10,2,12,10,2,28,10,2,26,16,2,18,
%T A059853 48,2,34,12,2,26,32,2,32,32,2,20,70,2,56,34,2,24,22,2,54,52,2,70,16,2,
%U A059853 18,38,2,16,36,2,12,72,2,114,30,2,64,32,2,52,54,2,22,92,2,154,88,2,56
%N A059853 Period of continued fraction for sqrt(n^2+3), n >= 2.
%C A059853 The old name was "Quotient cycle length of sqrt(n^2+3)." - _Jianing Song_, May 01 2021
%H A059853 Amiram Eldar, <a href="/A059853/b059853.txt">Table of n, a(n) for n = 2..10000</a>
%F A059853 If n is a multiple of 3 then a(n) = 2.
%F A059853 a(n) = A003285(n^2+3). - _Jianing Song_, May 01 2021
%e A059853 sqrt(35^2+3) = [35; 23, 2, 1, 7, 8, 1, 1, 1, 2, 2, 1, 1, 5, 3, 1, 16, 1, 3, 5, 1, 1, 2, 2, 1, 1, 1, 8, 7, 1, 2, 23, 70], so a(35) = 32.
%e A059853 sqrt(36^2+3) = [36; 24, 72], so a(36) = 2.
%e A059853 sqrt(37^2+3) = [37; 24, 1, 2, 7, 1, 8, 2, 1, 1, 1, 2, 2, 5, 1, 3, 18, 3, 1, 5, 2, 2, 1, 1, 1, 2, 8, 1, 7, 2, 1, 24, 74], so a(37) = 32.
%p A059853 with(numtheory): [seq(nops(cfrac(sqrt(k^2+3),'periodic','quotients')[2]),k=2..256)];
%t A059853 a[n_] := Length[ContinuedFraction[Sqrt[n^2 + 3]][[2]]]; Array[a, 100, 2] (* _Amiram Eldar_, Jul 10 2024 *)
%Y A059853 Cf. A003285.
%Y A059853 Period of continued fraction for sqrt(n^2+k): this sequence (k=3), A059855 (k=4), A059854 (k=5).
%K A059853 nonn
%O A059853 2,1
%A A059853 _Labos Elemer_, Feb 27 2001
%E A059853 New name by _Jianing Song_, May 01 2021