cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

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

This page as a plain text file.
%I A032976 #14 Feb 13 2021 01:12:36
%S A032976 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 A032976 57,61,62,63,67,68,69,86,87,88,92,93,94,98,99,117,118,119,123,124,125,
%U A032976 126,130,131,132,150,151,155,156,157,161,162,163
%N A032976 Numbers with the property that all pairs of consecutive base-5 digits differ by 0 or 1.
%H A032976 Robert Israel, <a href="/A032976/b032976.txt">Table of n, a(n) for n = 1..10000</a>
%p A032976 filter:= proc(n) local L,S;
%p A032976   L:= convert(n,base,5);
%p A032976   S:= convert(L[2..-1] - L[1..-2],set);
%p A032976   max(S)<=1 and min(S)>=-1
%p A032976 end proc:
%p A032976 select(filter, [$1..1000]); # _Robert Israel_, Nov 16 2016
%Y A032976 Cf. A007091.
%K A032976 nonn,base
%O A032976 1,2
%A A032976 _Clark Kimberling_