OFFSET
0,3
COMMENTS
A horse which is n inches high is described as a(n)/10 hands high: whole hands of 4 inches and the "decimal" point in a(n)/10 separating whole hands from remaining inches.
LINKS
Zhuorui He, Table of n, a(n) for n = 0..10000
Wikipedia, Hand (unit).
Index entries for linear recurrences with constant coefficients, signature (1,0,0,1,-1).
FORMULA
a(n) = 10 * floor(n/4) + (n mod 4). - Amiram Eldar, Nov 18 2025
From Stefano Spezia, Nov 26 2025: (Start)
G.f.: x*(1 + x + x^2 + 7*x^3)/((1 - x)^2*(1 + x)*(1 + x^2)).
E.g.f.: ((5*x - 3)*cosh(x) + 3*(cos(x) + sin(x)) + (5*x - 6)*sinh(x))/2. (End)
EXAMPLE
A horse n=58 inches high is 14.2 hands so a(58) = 142.
MATHEMATICA
a[n_] := Total[QuotientRemainder[n, 4] * {10, 1}]; Array[a, 61, 0] (* Amiram Eldar, Nov 18 2025 *)
PROG
(Python)
def A390774(n): return (lambda x:x[0]*10+x[1])(divmod(n, 4)) # Chai Wah Wu, Nov 25 2025
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
J. Lowell, Nov 18 2025
STATUS
approved
