

A146364


a(n) = smallest primes which continued fraction have different period.


0



2, 5, 7, 17, 19, 31, 41, 43, 73, 89, 103, 139, 151, 179, 191, 193, 211, 241, 271
(list;
graph;
refs;
listen;
history;
text;
internal format)



OFFSET

1,1


COMMENTS

This sequence is sorted A146363.


LINKS

Table of n, a(n) for n=1..19.


MATHEMATICA

$MaxExtraPrecision = 300; s = 10; aa = {}; Do[k = ContinuedFraction[(1 + Sqrt[n])/2, 1000]; If[Length[k] < 190, AppendTo[aa, 0], m = 1; While[k[[s ]] != k[[s + m]]  k[[s + m]] != k[[s + 2 m]]  k[[s + 2 m]] != k[[s + 3 m]]  k[[s + 3 m]] != k[[s + 4 m]], m++ ]; s = s + 1; While[k[[s ]] != k[[s + m]]  k[[s + m]] != k[[s + 2 m]]  k[[s + 2 m]] != k[[s + 3 m]]  k[[s + 3 m]] != k[[s + 4 m]], m++ ]; AppendTo[aa, m]], {n, 1, 1200}]; Print[aa]; bb = {}; Do[k = 1; yes = 0&&PeimeQ[k]; Do[If[aa[[k]] == n && yes == 0, AppendTo[bb, k]; yes = 1], {k, 1, Length[aa]}], {n, 1, 22}]; Sort[bb] (*Artur Jasinski*)


CROSSREFS

A000290, A078370, A146326A146345, A146348A146360, A146363.
Sequence in context: A019334 A045356 A158526 * A105895 A238699 A068360
Adjacent sequences: A146361 A146362 A146363 * A146365 A146366 A146367


KEYWORD

nonn


AUTHOR

Artur Jasinski, Oct 30 2008


STATUS

approved



