A213893 Fixed points of a sequence h(n) defined by the minimum number of 4's in the relation n*[n,4,4,...,4,n] = [x,...,x] between simple continued fractions.
3, 7, 43, 67, 103, 127, 163, 223, 283, 367, 463, 487, 523, 547, 607, 643, 727, 787, 823, 883, 907, 1063, 1123, 1303, 1327, 1423, 1447, 1543, 1567, 1627, 1663, 1723, 1747, 1783, 1867, 1987, 2083, 2143, 2203, 2287, 2347, 2383, 2467, 2683, 2707, 2767, 2803, 2887
Offset: 1
Keywords
Crossrefs
Programs
-
Mathematica
f[m_, n_] := Block[{c, k = 1}, c[x_, y_] := ContinuedFraction[x FromContinuedFraction[Join[{x}, Table[m, {y}], {x}]]]; While[First@ c[n, k] != Last@ c[n, k], k++]; k]; Select[Range[2, 1000], f[4, #] == # &] (* Michael De Vlieger, Sep 16 2015 *)
-
PARI
{a(n) = local(t, m=1); if( n<2, 0, while( 1, t = contfracpnqn( concat([n, vector(m,i,4), n])); t = contfrac(n*t[1,1]/t[2,1]); if(t[1]
Comments