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.

A282149 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..k}{(i-j+1)*d_i} = Sum_{i=1..j-1}{(j-i)*d_i}. Case x = 8.

This page as a plain text file.
%I A282149 #8 May 30 2019 09:00:14
%S A282149 9,18,27,36,45,54,63,66,72,75,84,93,102,111,129,132,141,144,150,159,
%T A282149 198,201,207,216,258,273,288,330,345,360,387,402,417,432,459,474,489,
%U A282149 504,513,515,524,528,533,542,551,576,581,585,590,599,600,642,647,657,672
%N A282149 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..k}{(i-j+1)*d_i} = Sum_{i=1..j-1}{(j-i)*d_i}. Case x = 8.
%C A282149 All the palindromic numbers in base 8 with an even number of digits belong to the sequence.
%C A282149 Here the fulcrum is between two digits while in the sequence from A282107 to A282115 is one of the digits.
%C A282149 The first number with this property in all the bases from 2 to 8 is
%C A282149 10296444436. - _Giovanni Resta_, Feb 16 2017
%H A282149 Paolo P. Lava, <a href="/A282149/b282149.txt">Table of n, a(n) for n = 1..10000</a>
%e A282149 672 in base 8 is 1240. If we split the number in 12 and 40 we have 2*1 + 1*2 = 4 for the left side and 4*1 + 0*2 = 4 for the right one.
%p A282149 P:=proc(n,h) local a,j,k: a:=convert(n, base, h):
%p A282149 for k from 1 to nops(a)-1 do
%p A282149 if add(a[j]*(k-j+1),j=1..k)=add(a[j]*(j-k),j=k+1..nops(a))
%p A282149 then RETURN(n); break: fi: od: end: seq(P(i,8),i=1..10^3);
%Y A282149 Cf. A282107 - A282115, A282143 - A282148, A282150, A282151.
%K A282149 nonn,base,easy
%O A282149 1,1
%A A282149 _Paolo P. Lava_, Feb 15 2017