OFFSET
1,3
COMMENTS
EXAMPLE
The base-3 representation of 7 is 21, in which every two consecutive digits are distinct, so 7 is a term of the sequence.
The base-3 representation of 532 is 201201, in which every 3 consecutive digits are distinct, so 532 is a term of the sequence.
MATHEMATICA
s1 = LinearRecurrence[{3, 0, 1, -3}, {0, 1, 3, 11}, 30] (* A037496 *)
s2 = LinearRecurrence[{3, 0, 1, -3}, {0, 1, 5, 15}, 30] (* A037504 *)
s3 = LinearRecurrence[{3, 0, 1, -3}, {0, 2, 6, 19}, 30] (* A037512 *)
s4 = LinearRecurrence[{3, 0, 1, -3}, {0, 7, 21, 65}, 30] (* A037520 *)
s = Union[s1, s2, s3, s4]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Clark Kimberling, Feb 26 2024
STATUS
approved