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.

A296697 Numbers whose base-5 digits d(m), d(m-1), ... d(0) have #(rises) = #(falls); see Comments.

This page as a plain text file.
%I A296697 #9 Jan 27 2023 19:08:39
%S A296697 1,2,3,4,6,12,18,24,26,27,28,29,31,35,36,40,41,42,45,46,47,48,51,52,
%T A296697 53,54,57,58,59,62,65,66,67,70,71,72,73,76,77,78,79,82,83,84,88,89,93,
%U A296697 95,96,97,98,101,102,103,104,107,108,109,113,114,119,124,126
%N A296697 Numbers whose base-5 digits d(m), d(m-1), ... d(0) have #(rises) = #(falls); see Comments.
%C A296697 A rise is an index i such that d(i) < d(i+1); a fall is an index i such that d(i) > d(i+1). The sequences A296697-A296699 partition the natural numbers. See the guide at A296712.
%H A296697 Clark Kimberling, <a href="/A296697/b296697.txt">Table of n, a(n) for n = 1..10000</a>
%e A296697 The base-5 digits of 126 are 1,0,0,1; here #(rises) = 1 and #(falls) = 1, so 126 is in the sequence.
%t A296697 z = 200; b = 5; d[n_] := Sign[Differences[IntegerDigits[n, b]]];
%t A296697 Select[Range [z], Count[d[#], -1] == Count[d[#], 1] &] (* A296697 *)
%t A296697 Select[Range [z], Count[d[#], -1] < Count[d[#], 1] &]  (* A296698 *)
%t A296697 Select[Range [z], Count[d[#], -1] > Count[d[#], 1] &]  (* A296699 *)
%t A296697 Select[Range[130],Total[Sign[Differences[IntegerDigits[#,5]]]]==0&] (* _Harvey P. Dale_, Jul 30 2019 *)
%Y A296697 Cf. A296698, A296699, A296712.
%K A296697 nonn,base
%O A296697 1,2
%A A296697 _Clark Kimberling_, Dec 21 2017