a(n) is the least number k greater than n such that the square roots of both k and n have continuous fractions with the same period p and, if p > 1, the same periodic terms except for the last term.
A334116
a(n) is the least number k greater than n such that the square roots of both k and n have continuous fractions with the same period p and, if p > 1, the same periodic terms except for the last term.
Terms
- a(0) =1a(1) =5a(2) =8a(3) =4a(4) =10a(5) =12a(6) =32a(7) =15a(8) =9a(9) =17a(10) =40a(11) =20a(12) =74a(13) =33a(14) =24a(15) =16a(16) =26a(17) =39a(18) =1880a(19) =30a(20) =112a(21) =660a(22) =96a(23) =35a(24) =25a(25) =37a(26) =104a(27) =299a(28) =338a(29) =42
External references
- oeis: A334116