The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A297044 Number of pieces in the list d(m), d(m-1), ..., d(0) of base-16 digits of n; see Comments 2
 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1 COMMENTS The definition of "piece" starts with the base-b digits d(m), d(m-1), ..., d(0) of n.  First, an *ascent* is a list (d(i),d(i-1),...,d(i-h)) such that d(i)=d(i) if i=d(i-h) if i>h.  A *descent* is a list (d(i),d(i-1),...,d(i-h)) such that d(i)>d(i-1)>...>d(i-h), where d(i+1)<=d(i) if ih.  A *flat* is a list (d(i),d(i-1),...,d(i-h)), where h>0, such that d(i)=d(i-1)=...=d(i-h), where d(i+1)!=d(i) if ih. A *piece* is an ascent, a descent, or a flat.  Example:  235621103 has five pieces:  (2,3,5,6), (6,2,1), (1,1), (1,0), and (0,3); that's 2 ascents, 2 descents, and 1 flat. For every b, the "piece sequence" includes every positive integer infinitely many times. See A297030 for a guide to related sequences. LINKS Clark Kimberling, Table of n, a(n) for n = 1..10000 EXAMPLE Base-16 digits for 12345678:  11, 12, 6, 1, 4, 14, so that a(1245678) = 3. MATHEMATICA a[n_, b_] := Length[Map[Length, Split[Sign[Differences[IntegerDigits[n, b]]]]]]; b = 16; Table[a[n, b], {n, 1, 1000}] CROSSREFS Cf. A297030 (pieces), A296712 (rises and falls), A296882 (pits and peaks). Sequence in context: A101637 A337380 A011729 * A296213 A327932 A277161 Adjacent sequences:  A297041 A297042 A297043 * A297045 A297046 A297047 KEYWORD nonn,easy,base AUTHOR Clark Kimberling, Jan 13 2018 STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified May 13 08:08 EDT 2021. Contains 343836 sequences. (Running on oeis4.)