login
Numbers with the property that all pairs of consecutive base-5 digits differ by 0 or 1.
1

%I #14 Feb 13 2021 01:12:36

%S 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,

%T 57,61,62,63,67,68,69,86,87,88,92,93,94,98,99,117,118,119,123,124,125,

%U 126,130,131,132,150,151,155,156,157,161,162,163

%N Numbers with the property that all pairs of consecutive base-5 digits differ by 0 or 1.

%H Robert Israel, <a href="/A032976/b032976.txt">Table of n, a(n) for n = 1..10000</a>

%p filter:= proc(n) local L,S;

%p L:= convert(n,base,5);

%p S:= convert(L[2..-1] - L[1..-2],set);

%p max(S)<=1 and min(S)>=-1

%p end proc:

%p select(filter, [$1..1000]); # _Robert Israel_, Nov 16 2016

%Y Cf. A007091.

%K nonn,base

%O 1,2

%A _Clark Kimberling_