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.

A256883 Numbers divisible by prime(d+1) for each digit d of their base-3 representation.

Original entry on oeis.org

0, 12, 20, 30, 36, 60, 80, 84, 90, 108, 120, 150, 170, 180, 210, 240, 246, 252, 270, 282, 300, 324, 330, 336, 354, 360, 390, 420, 450, 480, 510, 540, 560, 570, 600, 630, 650, 660, 690, 710, 720, 732, 738, 750, 756, 768, 780, 810, 822, 840, 846, 870, 900, 930, 960, 972, 984, 990, 1002, 1008, 1020, 1050, 1056, 1062, 1080, 1092, 1110
Offset: 1

Views

Author

M. F. Hasler, Apr 11 2015

Keywords

Comments

The base-3 variant of A256882, A256884, A256865, ..., A256870 in bases 2, ..., 10.

Examples

			0 is divisible by prime(0+1)=2.
12 = 110_3 (in base 3), and is divisible by prime(1+1)=3 and by prime(0+1)=2.
		

Crossrefs

Programs

  • PARI
    is(n,b=3)=!for(i=1,#d=Set(digits(n,b)),n%prime(d[i]+1)&&return)