A195609 Numbers n such that Sum_{i=1..n} A(i) = A(n)*A(n+1)/4, where A(n) = A000069(n).
3, 4, 5, 9, 15, 16, 17, 23, 27, 28, 29, 33, 39, 43, 44, 45, 51, 52, 53, 57, 63, 64, 65, 71, 75, 76, 77, 83, 84, 85, 89, 95, 99, 100, 101, 105, 111, 112, 113, 119, 123, 124, 125, 129, 135, 139, 140, 141, 147, 148, 149, 153, 159, 163, 164, 165, 169, 175, 176
Offset: 1
Keywords
Links
- Amiram Eldar, Table of n, a(n) for n = 1..10000
Programs
-
Mathematica
a = Select[Range[1000], OddQ[DigitCount[#, 2][[1]]] &]; t = {}; s = 0; Do[s = s + a[[n]]; If[s == a[[n]] a[[n + 1]]/4, AppendTo[t, n]], {n, Length[a] - 1}]; t (* T. D. Noe, Sep 23 2011 *)
Comments