[go: up one dir, main page]

login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A032976
Numbers with the property that all pairs of consecutive base-5 digits differ by 0 or 1.
1
1, 2, 3, 4, 5, 6, 7, 11, 12, 13, 17, 18, 19, 23, 24, 25, 26, 30, 31, 32, 36, 37, 38, 55, 56, 57, 61, 62, 63, 67, 68, 69, 86, 87, 88, 92, 93, 94, 98, 99, 117, 118, 119, 123, 124, 125, 126, 130, 131, 132, 150, 151, 155, 156, 157, 161, 162, 163
OFFSET
1,2
LINKS
MAPLE
filter:= proc(n) local L, S;
L:= convert(n, base, 5);
S:= convert(L[2..-1] - L[1..-2], set);
max(S)<=1 and min(S)>=-1
end proc:
select(filter, [$1..1000]); # Robert Israel, Nov 16 2016
CROSSREFS
Cf. A007091.
Sequence in context: A032971 A099466 A358673 * A174219 A115037 A280536
KEYWORD
nonn,base
STATUS
approved