This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A178590 #22 Jul 07 2019 20:19:44 %S A178590 1,3,4,9,7,12,13,27,16,21,19,36,25,39,40,81,43,48,37,63,40,57,55,108, %T A178590 61,75,64,117,79,120,121,243,124,129,91,144,85,111,100,189,103,120,97, %U A178590 171,112,165,163,324,169,183,136,225,139,192,181,351,196,237,199,360,241 %N A178590 a(2n) = 3*a(n), a(2n+1) = a(n) + a(n+1). %C A178590 In groups of 1, 2, 4, 8, ... terms; sums of group terms appears to be A081625: (1, 7, 41, 223,...), for example: 41 = (9 + 7 + 12 + 13). %C A178590 Equals row 3 in the array shown in A178568, an infinite family of sequences of the form a(2n) = r*a(n), a(2n+1) = a(n) + a(n+1). %C A178590 Let M = an infinite lower triangular matrix with (1, 3, 1, 0, 0, 0,...) in each column, and with successive columns shifted down twice from the previous column. A178590 = Lim_{n->inf} M^n, the left-shifted vector considered as a sequence. %C A178590 The Stern polynomial B(n,x) evaluated at x=3. See A125184. - _T. D. Noe_, Feb 28 2011 %H A178590 Antti Karttunen, <a href="/A178590/b178590.txt">Table of n, a(n) for n = 1..8191</a> %F A178590 a(2n) = 3*a(n), a(2n+1) = a(n) + a(n+1). %F A178590 a(n) = A090880(A260443(n)). - _Antti Karttunen_, Jul 29 2015 %F A178590 G.f.: x * Product_{k>=0} (1 + 3*x^(2^k) + x^(2^(k+1))). - _Ilya Gutkovskiy_, Jul 07 2019 %e A178590 In groups of 2^n terms (n=0,1,2,...): %e A178590 1; %e A178590 3, 4; %e A178590 9, 7, 12, 13; %e A178590 27, 16, 21, 19, 36, 25, 39, 40; %e A178590 ... %e A178590 a(6) = 12 = 3*a(3) = 3*4 %e A178590 a(7) = 13 = a(3) + a(4) = 4 + 9 %t A178590 a[0] = a[1] = 1; a[n_] := a[n] = If[ OddQ@n, a[(n - 1)/2] + a[(n + 1)/2], 3*a[n/2]]; Array[a, 61] (* _Robert G. Wilson v_, Jun 11 2010 *) %o A178590 (Scheme, with memoization-macro definec) %o A178590 (definec (A178590 n) (cond ((<= n 1) n) ((even? n) (* 3 (A178590 (/ n 2)))) (else (+ (A178590 (/ (- n 1) 2)) (A178590 (/ (+ n 1) 2)))))) %o A178590 ;; _Antti Karttunen_, Jul 29 2015 %Y A178590 Row 3 of A178568. %Y A178590 Cf. A081625, A090880, A260443. %K A178590 nonn,look %O A178590 1,2 %A A178590 _Gary W. Adamson_, May 29 2010 %E A178590 a(19) onwards from _Robert G. Wilson v_, Jun 11 2010