login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 


A029495
Numbers n such that n divides the (right) concatenation of all numbers <= n written in base 2 (most significant digit on right).
142
OFFSET
1,2
COMMENTS
This sequence differs from A061931 in that all least significant zeros are kept during concatenation.
No more terms < 10^7. - Lars Blomberg, Oct 01 2011
EXAMPLE
12345 -> (1)(01)(11)(001)(101) base 2 -> 10111001101 base 2 = 1485 and 5 divides 1485.
MATHEMATICA
b = 2; c = {}; Select[Range[10^4], Divisible[FromDigits[c = Join[c, Reverse[IntegerDigits[#, b]]], b], #] &] (* Robert Price, Mar 12 2020 *)
PROG
(PARI) is(n) = my(t=[]); for(k=1, n, t=concat(t, Vecrev(binary(k)))); if(Mod(subst(Pol(t), x, 2), n)==0, return(1), return(0)) \\ Felix Fröhlich, Jul 06 2017
KEYWORD
nonn,base,bref
EXTENSIONS
Edited and updated by Larry Reeves (larryr(AT)acm.org), Apr 12 2002
Additional comments, more terms and example from Larry Reeves (larryr(AT)acm.org), May 25 2001
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 22 15:29 EDT 2024. Contains 376119 sequences. (Running on oeis4.)