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-3 of 3 results.

A282115 Numbers m with k digits in base b (MSD(m)=d_k, LSD(m)=d_1) such that, for one of their digits in position d_k < j < d_1, Sum_{i=j+1..k} (i-j)*d_i = Sum_{i=1..j-1} (j-i)*d_i. Case b = 10.

Original entry on oeis.org

101, 111, 121, 131, 141, 151, 161, 171, 181, 191, 202, 212, 222, 232, 242, 252, 262, 272, 282, 292, 303, 313, 323, 333, 343, 353, 363, 373, 383, 393, 404, 414, 424, 434, 444, 454, 464, 474, 484, 494, 505, 515, 525, 535, 545, 555, 565, 575, 585, 595, 606, 616, 626
Offset: 1

Views

Author

Paolo P. Lava, Feb 06 2017

Keywords

Comments

All the numbers that are palindromic in base 10 and have an odd number of digits belong to this sequence.
Here the fulcrum is one of the digits while in the sequences from A282143 to A282151 it is between two digits.

Examples

			10467: if j = 2 (digit 6) we have 4*1 + 0*2 + 1*3 = 7 for the left side and 7*1 = 7 for the right side.
		

Crossrefs

Programs

  • Maple
    P:=proc(n,h) local a,j,k: a:=convert(n, base, h):
    for k from 1 to nops(a)-1 do
    if add(a[j]*(k-j),j=1..k)=add(a[j]*(j-k),j=k+1..nops(a)) then
    RETURN(n); break: fi: od: end: seq(P(i,10),i=1..10^3);

A282108 Numbers n with k digits in base x (MSD(n)=d_k, LSD(n)=d_1) such that, chosen one of their digits in position d_k < j < d_1, is Sum_{i=j+1..k}{(i-j)*d_i} = Sum_{i=1..j-1}{(j-i)*d_i}. Case x = 3.

Original entry on oeis.org

10, 13, 16, 20, 23, 26, 29, 30, 32, 35, 39, 48, 55, 60, 64, 69, 73, 78, 82, 87, 90, 91, 96, 100, 105, 112, 117, 121, 130, 137, 142, 144, 146, 151, 155, 160, 164, 165, 169, 173, 178, 180, 182, 187, 192, 194, 203, 207, 212, 219, 224, 233, 234, 242, 246, 247, 256
Offset: 1

Views

Author

Paolo P. Lava, Feb 06 2017

Keywords

Comments

All the palindromic numbers in base 3 with an odd number of digits belong to the sequence.
Here the fulcrum is one of the digits while in the sequence from A282143 to A282151 is between two digits.

Examples

			35 in base 3 is 1022. If j = 2 (second 2 from the right) we have 0*1 + 1*2 = 2 for the left side and 2*1 for the right one.
		

Crossrefs

Programs

  • Maple
    P:=proc(n,h) local a,j,k: a:=convert(n, base, h):
    for k from 1 to nops(a)-1 do
    if add(a[j]*(k-j),j=1..k)=add(a[j]*(j-k),j=k+1..nops(a))
    then RETURN(n); break: fi: od: end: seq(P(i,3),i=1..10^3);

A282110 Numbers n with k digits in base x (MSD(n)=d_k, LSD(n)=d_1) such that, chosen one of their digits in position d_k < j < d_1, is Sum_{i=j+1..k}{(i-j)*d_i} = Sum_{i=1..j-1}{(j-i)*d_i}. Case x = 5.

Original entry on oeis.org

26, 31, 36, 41, 46, 52, 57, 62, 67, 72, 78, 83, 88, 93, 98, 104, 109, 114, 119, 124, 127, 130, 132, 137, 142, 147, 153, 155, 158, 163, 168, 173, 179, 180, 184, 189, 194, 199, 205, 230, 251, 254, 259, 260, 264, 269, 274, 276, 285, 301, 310, 326, 335, 351, 360, 381
Offset: 1

Views

Author

Paolo P. Lava, Feb 06 2017

Keywords

Comments

All the palindromic numbers in base 5 with an odd number of digits belong to the sequence.
Here the fulcrum is one of the digits while in the sequence from A282143 to A282151 is between two digits.
Numbers with this property in all the bases from 2 to 5 are: 78, 650, 1550, 4368, 4433, 4805, 6913, 7410, 16709, 31824, 35175, 41216, 104272, 107584, 132285, 144781, 165059, 173305, 174096, 190468, 195473, 201900, 205005, 205261, 214432, 231521, 243984, 275026, 278528, 295275, 304562, 313769, ...

Examples

			137 in base 5 is 1022. If j=2 (the second 2 from right) we have 0*1 + 1*2 = 2 for the left side and 2*1 = 2 for the right one.
		

Crossrefs

Programs

  • Maple
    P:=proc(n,h) local a,j,k: a:=convert(n, base, h):
    for k from 1 to nops(a)-1 do
    if add(a[j]*(k-j),j=1..k)=add(a[j]*(j-k),j=k+1..nops(a)) then
    RETURN(n); break: fi: od: end: seq(P(i,5),i=1..10^3);
Showing 1-3 of 3 results.