OFFSET
1,1
COMMENTS
Beyond 3999 the numerals are not representable in ASCII and hence sorting becomes problematic. - Steven N. Severinghaus, Nov 17 2007
LINKS
Steven N. Severinghaus, Table of n, a(n) for n = 1..3999
MAPLE
A036742 := sort([seq(convert(n, roman), n=1..3999)], lexorder): seq(convert(A036742[n], arabic), n=1..51); # Nathaniel Johnston, May 18 2011
MATHEMATICA
FromRomanNumeral[Sort[RomanNumeral[Range[3999]]]] (* Hans Havermann, May 06 2019; requires Mathematica 10.2+ *)
PROG
(Perl)
#!/bin/bash
# Requires Roman module:
# http://search.cpan.org/~chorny/Roman-1.20/lib/Roman.pm
perl -e 'use Roman; for(1..3999) { print roman($_)."
"; }' | sort | perl -ne 'use Roman; chomp; print arabic($_)."
"'
# Steven N. Severinghaus, Nov 17 2007
CROSSREFS
KEYWORD
AUTHOR
STATUS
approved