Palindromic Roman Numerals

More Details

Here are the numbers from 1 to 10 in Roman numerals:

IntegerString[Range[10],"Roman"]

These are not palindromes: IV, VI,VII, VIII, IX.

The palindromes are I, II, III, V, X, corresponding to 1, 2, 3, 5, 10 in the usual decimal notation using Arabic numerals.

What Your Function Should Do

Write a function called RomanPalindromes that takes an integer n and returns a list of all numbers up to n that are palindromic in their Roman numeral representation.

RomanPalindromes[2]

More Examples

RomanPalindromes[10]

RomanPalindromes[20]

RomanPalindromes[2222]

Things You May Find Useful

Here is a list of some common Roman numeral characters. They stand for 1, 5, 10 and 100:

{"I", "V", "X", "C"}

Read more about Roman numerals.

A palindromic number is a number written in base 10 that is the same when read forward or backward. For example, 123454321 is a palindromic number.

RomanPalindromes[n_Integer]/;n>0:=