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.

A064481 Numbers which are divisible by the sum of their base-5 digits.

Original entry on oeis.org

1, 2, 3, 4, 5, 6, 8, 10, 12, 15, 16, 18, 20, 24, 25, 26, 27, 28, 30, 32, 36, 40, 42, 45, 48, 50, 51, 52, 54, 56, 60, 63, 64, 65, 66, 72, 75, 76, 78, 80, 85, 88, 90, 91, 96, 99, 100, 102, 104, 105, 112, 117, 120, 125, 126, 128, 130, 132, 135, 136, 138, 140, 144, 145
Offset: 1

Views

Author

Klaus Brockhaus, Oct 03 2001

Keywords

Examples

			Base-5 representation of 28 is 103; 1 + 0 + 3 = 4 divides 28.
		

Crossrefs

Cf. A005349 (base 10), A049445 (base 2), A064150 (base 3), A064438 (base 4), A344341.

Programs

  • ARIBAS
    : maxarg := 160; for n := 1 to maxarg do if n mod sum(basearray(n,5)) = 0 then write(n," "); end; end; function basearray(n,b: integer): array; var k: integer; stk: stack; begin while n > 0 do k := n mod b; stack_push(stk,k); n := (n - k) div b; end; return stack2array(stk); end;.
    
  • PARI
    isok(n) = !(n % sumdigits(n, 5)); \\ Michel Marcus, Jun 24 2018

Extensions

Offset changed from 0 to 1 by Harry J. Smith, Sep 15 2009