|
|
A160676
|
|
Numbers k such that k and 2k use the same number of characters when expressed in Roman numerals.
|
|
4
|
|
|
2, 5, 7, 13, 18, 20, 22, 31, 36, 46, 50, 52, 55, 57, 63, 68, 70, 72, 81, 86, 95, 97, 103, 108, 123, 126, 130, 132, 135, 137, 145, 147, 153, 158, 173, 176, 180, 182, 185, 187, 198, 200, 202, 205, 207, 213, 218, 220, 222, 231, 236, 246, 254, 261, 266, 274
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
COMMENTS
|
Example: 2 and its double 4 both need two characters in Roman numerals: 2=II, 4=IV. Also 5=V, 10=X; 7=VII, 14=XIV.
|
|
LINKS
|
|
|
FORMULA
|
|
|
MAPLE
|
for n from 1 to 3999 do if(length(convert(n, roman)) = length(convert(2*n, roman)))then printf("%d, ", n): fi: od: # Nathaniel Johnston, May 18 2011
|
|
MATHEMATICA
|
Select[Range[300], StringLength[RomanNumeral[#]]==StringLength[ RomanNumeral[ 2 #]]&] (* Harvey P. Dale, Apr 29 2022 *)
|
|
PROG
|
(Haskell)
a160676 n = a160676_list !! (n-1)
a160676_list = filter (\x -> a006968 x == a006968 (2 * x)) [1..]
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy,base
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|