|
|
|
|
#12 by N. J. A. Sloane at Sun Apr 30 07:55:57 EDT 2017
|
|
|
|
#11 by Antti Karttunen at Fri Apr 28 01:25:59 EDT 2017
|
|
|
Discussion
|
Fri Apr 28
| 14:51
| Antti Karttunen: (The above musings were related to the formula a(n) = n*A201555(n) / 2^(A285717(n)) = A000265(n*A201555(n)) I gave for https://oeis.org/A285388).
|
|
|
|
#10 by Antti Karttunen at Fri Apr 28 00:56:33 EDT 2017
|
|
|
|
#9 by Antti Karttunen at Thu Apr 27 13:44:36 EDT 2017
|
|
|
|
#8 by Antti Karttunen at Thu Apr 27 13:44:01 EDT 2017
|
|
|
|
#7 by Indranil Ghosh at Thu Apr 27 12:07:45 EDT 2017
|
|
|
|
#6 by Indranil Ghosh at Thu Apr 27 12:07:14 EDT 2017
|
| MATHEMATICA
|
Table[IntegerExponent[n, 2] + DigitCount[n^2, 2, 1], {n, 120}] (* Indranil Ghosh, Apr 27 2017 *)
|
|
|
|
#5 by Indranil Ghosh at Thu Apr 27 12:04:12 EDT 2017
|
| PROG
|
(PARI) a(n) = valuation(n, 2) + hammingweight(n^2); \\ Indranil Ghosh, Apr 27 2017
(Python)
import math
def a(n): return int(math.log(n - (n & n - 1), 2)) + bin(n**2)[2:].count("1") # Indranil Ghosh, Apr 27 2017
|
| STATUS
|
proposed
editing
|
|
|
|
#4 by Antti Karttunen at Thu Apr 27 08:31:16 EDT 2017
|
|
|
|
#3 by Antti Karttunen at Thu Apr 27 08:29:55 EDT 2017
|
| LINKS
|
Antti Karttunen, <a href="/A285717/b285717.txt">Table of n, a(n) for n = 1..8192</a>
|
|
|
|