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.

A256088 Non-palindromic balanced numbers in base 8.

Original entry on oeis.org

536, 608, 680, 706, 752, 778, 824, 850, 899, 922, 971, 994, 1049, 1072, 1121, 1144, 1193, 1219, 1265, 1291, 1337, 1363, 1412, 1435, 1484, 1507, 1562, 1585, 1634, 1657, 1706, 1732, 1778, 1804, 1850, 1876, 1925, 1948, 1997
Offset: 1

Views

Author

M. F. Hasler, Mar 14 2015

Keywords

Comments

Here a number is called balanced if the sum of digits weighted by their arithmetic distance from the "center" is zero. Since palindromes (A029803) are trivially balanced, they are excluded here.
This is the base-8 variant of the decimal version A256075 invented by Eric Angelini. See there, and the base-2 version A256082, for further information and examples.

Crossrefs

Programs

  • Maple
    filter:= proc(n) local L, m,i;
      L:= convert(n, base, 8);
      m:= (1+nops(L))/2;
    add(L[i]*(i-m), i=1..nops(L))=0  and L <> ListTools:-Reverse(L)
    end proc:
    select(filter, [$1..10000]); # Robert Israel, Nov 04 2024
  • PARI
    is(n,b=8,d=digits(n,b),o=(#d+1)/2)=!(vector(#d,i,i-o)*d~)&&d!=Vecrev(d)