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.

Showing 1-4 of 4 results.

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

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 22, 33, 44, 55, 66, 77, 88, 99, 101, 102, 103, 104, 105, 106, 107, 108, 109, 111, 120, 121, 130, 131, 132, 140, 141, 142, 143, 150, 151, 152, 153, 154, 160, 161, 162, 163, 164, 165, 170, 171, 172, 173, 174, 175, 176, 180, 181
Offset: 1

Views

Author

Clark Kimberling, Jan 08 2018

Keywords

Comments

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 A296712-A296714 partition the natural numbers.
****
Guide to related sequences:
Base #(rises) = #(falls) #(rises) > #(falls) #(rises) < #(falls)
2 A005408 (none) A005843

Examples

			The base-10 digits of 181 are 1,8,1; here #(rises) = 1 and #(falls) = 1, so 181 is in the sequence.
		

Crossrefs

Programs

  • Mathematica
    z = 200; b = 10; d[n_] := Sign[Differences[IntegerDigits[n, b]]];
    Select[Range [z], Count[d[#], -1] == Count[d[#], 1] &] (* A296712 *)
    Select[Range [z], Count[d[#], -1] < Count[d[#], 1] &]  (* A296713 *)
    Select[Range [z], Count[d[#], -1] > Count[d[#], 1] &]  (* A296714 *)

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

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 26, 39, 52, 65, 78, 91, 104, 117, 130, 143, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 157, 168, 169, 180, 181, 182, 192, 193, 194, 195, 204, 205, 206, 207, 208, 216, 217, 218, 219, 220, 221, 228, 229, 230
Offset: 1

Views

Author

Clark Kimberling, Jan 08 2018

Keywords

Comments

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 A296747-A296749 partition the natural numbers. See the guide at A296712.

Examples

			The base-12 digits of 230 are 1,7,2; here #(rises) = 1 and #(falls) = 1, so 230 is in the sequence.
		

Crossrefs

Programs

  • Mathematica
    z = 200; b = 12; d[n_] := Sign[Differences[IntegerDigits[n, b]]];
    Select[Range [z], Count[d[#], -1] == Count[d[#], 1] &] (* A296747 *)
    Select[Range [z], Count[d[#], -1] < Count[d[#], 1] &]  (* A296748 *)
    Select[Range [z], Count[d[#], -1] > Count[d[#], 1] &]  (* A296749 *)

A296748 Numbers whose base-12 digits d(m), d(m-1), ..., d(0) have #(rises) > #(falls); see Comments.

Original entry on oeis.org

14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 27, 28, 29, 30, 31, 32, 33, 34, 35, 40, 41, 42, 43, 44, 45, 46, 47, 53, 54, 55, 56, 57, 58, 59, 66, 67, 68, 69, 70, 71, 79, 80, 81, 82, 83, 92, 93, 94, 95, 105, 106, 107, 118, 119, 131, 158, 159, 160, 161, 162, 163
Offset: 1

Views

Author

Clark Kimberling, Jan 08 2018

Keywords

Comments

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 A296747-A296749 partition the natural numbers. See the guide at A296712.

Examples

			The base-12 digits of 163 are 1,1,7; here #(rises) = 1 and #(falls) = 0, so 163 is in the sequence.
		

Crossrefs

Programs

  • Mathematica
    z = 200; b = 12; d[n_] := Sign[Differences[IntegerDigits[n, b]]];
    Select[Range [z], Count[d[#], -1] == Count[d[#], 1] &] (* A296747 *)
    Select[Range [z], Count[d[#], -1] < Count[d[#], 1] &]  (* A296748 *)
    Select[Range [z], Count[d[#], -1] > Count[d[#], 1] &]  (* A296749 *)

A297276 Numbers whose base-12 digits have greater down-variation than up-variation; see Comments.

Original entry on oeis.org

12, 24, 25, 36, 37, 38, 48, 49, 50, 51, 60, 61, 62, 63, 64, 72, 73, 74, 75, 76, 77, 84, 85, 86, 87, 88, 89, 90, 96, 97, 98, 99, 100, 101, 102, 103, 108, 109, 110, 111, 112, 113, 114, 115, 116, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 132, 133, 134
Offset: 1

Views

Author

Clark Kimberling, Jan 16 2018

Keywords

Comments

Suppose that n has base-b digits b(m), b(m-1), ..., b(0). The base-b down-variation of n is the sum DV(n,b) of all d(i)-d(i-1) for which d(i) > d(i-1); the base-b up-variation of n is the sum UV(n,b) of all d(k-1)-d(k) for which d(k) < d(k-1). The total base-b variation of n is the sum TV(n,b) = DV(n,b) + UV(n,b). See the guide at A297330.
Differs from A296749 first at 168 = 120_12, which is in not in A296749 because it has the same number of rises and falls, but in here because DV(168,12) =2 > UV(168,12) =1. - R. J. Mathar, Jan 23 2018

Examples

			134 in base-12:  11,2, having DV = 9, UV = 0, so that 134 is in the sequence.
		

Crossrefs

Programs

  • Mathematica
    g[n_, b_] := Map[Total, GatherBy[Differences[IntegerDigits[n, b]], Sign]];
    x[n_, b_] := Select[g[n, b], # < 0 &]; y[n_, b_] := Select[g[n, b], # > 0 &];
    b = 12; z = 2000; p = Table[x[n, b], {n, 1, z}]; q = Table[y[n, b], {n, 1, z}];
    w = Sign[Flatten[p /. {} -> {0}] + Flatten[q /. {} -> {0}]];
    Take[Flatten[Position[w, -1]], 120]   (* A297276 *)
    Take[Flatten[Position[w, 0]], 120]    (* A297277 *)
    Take[Flatten[Position[w, 1]], 120]    (* A297278 *)
Showing 1-4 of 4 results.