A036213 Duplicating binary multipliers; i.e., n+1 1-bits placed 2n bits from each other.
1, 5, 273, 266305, 4311810305, 1127000493261825, 4723519685917965029377, 316931994050834867150735294465, 340287559297026369749534115703797383169, 5846028850153881119687907085637645039610972340225, 1606939576755992644461949257743820820735113393327883823349761
Offset: 0
References
- R. Schroeppel: DECsystem-10/20 Processor Reference Manual AA-H391A-TK, Chapter 2, User Operations, section 2.15: Programming Examples: Reversing Order of Digits.
Links
- Vincenzo Librandi, Table of n, a(n) for n = 0..40
- M. Beeler, R. W. Gosper, and R. Schroeppel, A Bit-Reversing Example in HAKMEM (Item 167).
- A. Karttunen, A Simple C program Demonstrating Bit Reversals.
Programs
-
Magma
[1] cat [((2^((2*(n^2))+2*(n)))-1)/((2^(2*n))-1): n in [1..10]]; // Vincenzo Librandi, Aug 03 2017
-
Mathematica
Join[{1}, Table[((2^((2 (n^2)) + 2 (n))) - 1) / ((2^(2 n)) - 1), {n, 20}]] (* Vincenzo Librandi, Aug 03 2017 *)
-
PARI
a(n) = if (n==0, 1, ((2^((2*(n^2))+2*(n)))-1)/((2^(2*n))-1)) \\ Michel Marcus, Jun 07 2013
Formula
a(0) = 1, a(n) = (2^(2*n^2+2*n)-1) / (2^(2*n)-1).
Comments