OFFSET
1,1
COMMENTS
These will always have CCCXC in them.
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,0,0,0,0,0,1,-1).
FORMULA
From Elmo R. Oliveira, Jul 02 2026: (Start)
a(n) = a(n-1) + a(n-10) - a(n-11) for n > 11.
G.f.: x*(390+x+x^2+x^3+x^4+x^5+x^6+x^7+x^8+x^9+101*x^10) / (1-x-x^10+x^11) = x*(390 - 389*x + 100*x^10 - 101*x^11) / ((1-x) * (-1+x)^2 * (1+x) * (1-x+x^2-x^3+x^4) * (1+x+x^2+x^3+x^4)). (End)
EXAMPLE
390 = CCCXC; 890 = DCCCXC.
MATHEMATICA
Select[Range[2000], StringCount[RomanNumeral[#], "C"]==4&] (* Harvey P. Dale, Jul 30 2015 *)
(* Alternative: *)
LinearRecurrence[{1, 0, 0, 0, 0, 0, 0, 0, 0, 1, -1}, {390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 890}, 40] (* Harvey P. Dale, Jul 30 2015 *)
PROG
(PARI) lista() = {for (i=0, 9, for (j=0, 9, print1((390+j)+500*i, ", "); ); ); } \\ Michel Marcus, May 14 2014
CROSSREFS
KEYWORD
nonn,easy,less,base,changed
AUTHOR
J. Lowell, May 06 2014
EXTENSIONS
More terms from Elmo R. Oliveira, Jul 02 2026
STATUS
approved
