OFFSET
1,2
REFERENCES
H. Davenport, The Higher Arithmetic. Cambridge Univ. Press, 7th edition, 1999, table 1.
FORMULA
a(n) = A003285(n) + 1. - Andrey Zabolotskiy, Jun 23 2020
EXAMPLE
a(2)=2: [1,(2)+ ]; a(3)=3: [1,(1,2)+ ]; a(4)=1: [2]; a(5)=2: [2,(4)+ ].
PROG
(Python)
from sympy import continued_fraction_periodic
def A067280(n): return len((a := continued_fraction_periodic(0, 1, n))[:1]+(a[1] if a[1:] else [])) # Chai Wah Wu, Jun 14 2022
CROSSREFS
Related sequences: 2 : A040000, ..., 44: A040037, 48: A040041, ..., 51: A040043, 56: A040048, 60: A040052, 63: A040055, ..., 66: A040057. 68: A040059, 72: A040063, 80: A040071.
Related sequences: 45: A010135, ..., 47: A010137, 52: A010138, ..., 55: A010141, 57: A010142, ..., 59: A010144. 61: A010145, 62: A010146. 67: A010147, 69: A010148, ..., 71: A010150.
Cf. A003285.
KEYWORD
nonn,easy
AUTHOR
Frank Ellermann, Feb 23 2002
EXTENSIONS
Name clarified by Michel Marcus, Jun 22 2020
STATUS
approved