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.

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

This page as a plain text file.
%I A256882 #10 Dec 13 2024 13:19:36
%S A256882 0,3,6,12,15,18,24,30,36,42,48,54,60,63,66,72,78,84,90,96,102,108,114,
%T A256882 120,126,132,138,144,150,156,162,168,174,180,186,192,198,204,210,216,
%U A256882 222,228,234,240,246,252,255,258,264,270,276,282,288,294,300,306,312,318,324,330,336,342,348,354,360,366,372,378,384,390,396,402
%N A256882 Numbers divisible by prime(d+1) for each digit d of their base-2 representation.
%C A256882 Also, numbers divisible by 3 which are even or have no digit zero in their base-2 representation.
%C A256882 The base-2 variant of A256883 - A256884, A256865 - A256870 in bases 3,...,10.
%e A256882 6 = 110_2 (in base 6), and 6 is divisible by prime(1+1)=3 and by prime(0+1) = 2.
%e A256882 9 = 101_2 is not in the sequence because it is odd but has a binary digit 0.
%o A256882 (PARI) is(n,b=2)=!for(i=1,#d=Set(digits(n,b)),n%prime(d[i]+1)&&return)
%Y A256882 Cf. A256883 - A256884, A256865 - A256870, A256786, A256874 - A256879.
%K A256882 nonn,base
%O A256882 1,2
%A A256882 _M. F. Hasler_, Apr 11 2015