OFFSET
1,2
COMMENTS
Decimal digit positions are numbered 1 for the units, 2 for immediately after the decimal point, and so on.
This sequence can be interpreted as the decimal digits of a constant 1.5030006...
This constant shares an infinite number of decimal digits with any given rational r. This is since p,q go through all pairs of integers >= 1 and so p(n)/q(n) = r for infinitely many n.
This constant is irrational.
EXAMPLE
p(1) = 1, q(1) = 1, p/q = 1/1 = 1, a(1) = 1.
p(2) = 1, q(2) = 2, p/q = 1/2 = 0.5, a(2) = 5.
p(3) = 2, q(3) = 1, p/q = 2/1 = 2.00, a(3) = 0.
p(4) = 1, q(4) = 3, p/q = 1/3 = 0.333..., a(4) = 3.
PROG
(PARI) p(n) = n-binomial(floor(1/2+sqrt(2*n)), 2); \\ A002260
q(n) = binomial( floor(3/2 + sqrt(2*n)), 2) - n + 1; \\ A004736
a(n) = my(r = p(n)/q(n)); floor(r*10^(n-1)) % 10; \\ Michel Marcus, Apr 05 2023
CROSSREFS
KEYWORD
AUTHOR
Jesiah Darnell, Apr 01 2023
STATUS
approved