The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
The OEIS is supported by the many generous donors to the OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A261135 Decimal value a(n) of the binary number b(n) obtained by starting from n, sequentially concatenating all binary numbers down to 1 and then sequentially concatenating all binary numbers from 2 up to n. 0
 1, 22, 475, 20188, 1472229, 112441134, 8415721847, 1234163177336, 336405959636873, 95454487901599898, 26891544907776231851, 7513814442828887530172, 2084725487959034609380301, 574954374994698424018451678, 157752074714160807772190133743, 86177704805459827544499089423856 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,2 LINKS Table of n, a(n) for n=1..16. FORMULA a(n) = binary_to_decimal(concatenate(binary(n), binary(n-1), binary(n-2), ..., 11, 10, 1, 10, 11, ..., binary(n-2), binary(n-1), binary(n))) EXAMPLE a(1) = binary_to_decimal(1) = 1; a(2) = binary_to_decimal(10110) = 22; a(3) = binary_to_decimal(111011011) = 475; a(4) = binary_to_decimal(100111011011100) = 20188. MATHEMATICA Table[d = IntegerDigits[#, 2] & /@ Range@ n; FromDigits[#, 2] &@ Flatten[{Flatten@ Reverse@ d, Flatten@ Rest@ d}, 1], {n, 16}] (* Michael De Vlieger, Aug 20 2015 *) CROSSREFS Cf. A007942 for a base-10 version. Cf. A173427 for an inverted ordering of repeated binary numbers. Sequence in context: A276644 A139228 A240782 * A158535 A171327 A077421 Adjacent sequences: A261132 A261133 A261134 * A261136 A261137 A261138 KEYWORD nonn,base AUTHOR Umut Uludag, Aug 10 2015 EXTENSIONS a(11)-a(16) from Michael De Vlieger, Aug 20 2015 STATUS approved

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

Last modified May 19 14:45 EDT 2024. Contains 372698 sequences. (Running on oeis4.)