|
|
A242491
|
|
Numbers avoiding subtractive notation when written in Roman numerals.
|
|
0
|
|
|
1, 2, 3, 5, 6, 7, 8, 10, 11, 12, 13, 15, 16, 17, 18, 20, 21, 22, 23, 25, 26, 27, 28, 30, 31, 32, 33, 35, 36, 37, 38, 50, 51, 52, 53, 55, 56, 57, 58, 60, 61, 62, 63, 65, 66, 67, 68, 70, 71, 72, 73, 75, 76, 77, 78, 80, 81, 82, 83, 85, 86, 87, 88, 100, 101, 102, 103, 105
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
Numbers with only digits 0,1,2,3,5,6,7,8.
|
|
LINKS
|
|
|
EXAMPLE
|
4 in Roman numerals is IV (5 - 1) and so 4 is not in this sequence.
|
|
PROG
|
(PARI) isok(n) = my(v = vecsort(digits(n))); ! (vecsearch(v, 4) || vecsearch(v, 9)); \\ Michel Marcus, May 19 2014
(Python)
from itertools import count, islice
from sympy.ntheory.factor_ import digits
def A242491_gen(): # generator of terms
return (int(''.join(str(d) if d<4 else str(d+1) for d in digits(n, 8)[1:])) for n in count(1))
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|