%I #14 Mar 04 2020 22:59:54
%S 0,0,0,0,1,0,0,0,2,3,0,1,1,0,0,0,4,5,6,7,1,0,3,2,2,3,0,1,1,0,0,0,8,9,
%T 10,11,13,12,15,14,2,3,0,1,7,6,5,4,4,5,6,7,1,0,3,2,2,3,0,1,1,0,0,0,16,
%U 17,18,19,21,20,23,22,26,27,24,25,31,30,29,28,4,5,6,7,1,0,3,2,14,15,12
%N Second derivative of n.
%C a(n) = A038554(A038554(n)). - _Reinhard Zumkeller_, Mar 06 2013
%H Reinhard Zumkeller, <a href="/A038570/b038570.txt">Table of n, a(n) for n = 0..10000</a>
%t dtn[ L_ ] := Fold[ 2#1+#2&, 0, L ]; f[ n_ ] := dtn[ Map[ Abs[ #[ [ 1 ] ]-#[ [ 2 ] ] ]&, Partition[ IntegerDigits[ n, 2 ], 2, 1 ] ] ]; Table[ f[ f[ n ] ], {n, 0, 120} ]
%o (Haskell)
%o a038570 = a038554 . fromIntegral . a038554
%o -- _Reinhard Zumkeller_, Mar 06 2013
%Y Cf. A038554.
%K nonn,easy,nice,look
%O 0,9
%A _N. J. A. Sloane_
%E More terms from _Erich Friedman_