# Greetings from The On-Line Encyclopedia of Integer Sequences! http://oeis.org/ Search: id:a277914 Showing 1-1 of 1 %I A277914 #19 Dec 08 2023 15:41:56 %S A277914 0,1,0,1,2,3,2,1,2,1,0,1,2,3,4,5,4,5,4,5,6,5,4,3,4,5,4,5,4,3,2,3,2,1, %T A277914 0,1,2,3,4,5,6,7,6,7,8,7,8,9,10,9,8,9,8,9,10,11,10,11,10,11,10,9,10, %U A277914 11,10,9,8,7,8,9,10,9,10,11,10,9,10,9,10,9,10 %N A277914 a(n) is the number of zeros minus the number of ones among the first n terms of A076478. %C A277914 A036799 gives the positions of zeros in this sequence. %C A277914 Between two zeros, the graph of the sequence looks like a Takagi (or blancmange) curve. %H A277914 Rémy Sigrist, Table of n, a(n) for n = 0..10000 %H A277914 Wikipedia, Blancmange curve %F A277914 a(n) = Sum_{i=0..n-1} (-1)^A076478(i) for any n>=0. %t A277914 Join[{0},Flatten[Array[Accumulate[Flatten[Tuples[{1,-1},#]]]&,5]]] (* _Paolo Xausa_, Dec 08 2023 *) %Y A277914 Cf. A076478, A036799. %K A277914 nonn,base %O A277914 0,5 %A A277914 _Rémy Sigrist_, Nov 03 2016 # Content is available under The OEIS End-User License Agreement: http://oeis.org/LICENSE