OFFSET
1,1
COMMENTS
Undulants are numbers are of the form ababab..... with a and b distinct digits (base 10, a nonzero). An undulate is nontrivial if it has at least 3 digits. - Danny Rorabaugh, Apr 22 2015
LINKS
Reiner Moewald, Table of n, a(n) for n = 1..499
EXAMPLE
505 is the least entry of A046075 that is divisible by 5, so a(5) = 505. Since an undulant cannot end in 00, a(100)=0. - Danny Rorabaugh, Apr 22 2015
PROG
(Python)
feld = []
for n in range(3, 500):
...for a in range(1, 10):
......for b in range(10):
.........if a != b:
............z_string = ""
............for pos in range(n):
...............if pos % 2 == 0:
..................z_string = z_string + str(a)
...............else:
..................z_string = z_string + str(b)
............z = int(z_string)
............feld.append(z)
feld_length = len(feld)
for z in range (1, 150):
...start = 0
...while start < feld_length and feld[start] % z != 0:
......start = start + 1
...if start < feld_length:
......print(z, feld[start])
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Reiner Moewald, Mar 22 2015
STATUS
approved