The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A284272 Sum of coefficients > 1 in the Stern polynomial B(n,x): a(n) = A275812(A260443(n)). 4

%I #12 Mar 28 2017 14:53:32

%S 0,0,0,0,0,2,0,0,0,2,2,3,0,4,0,0,0,2,2,6,2,7,3,5,0,5,4,6,0,6,0,0,0,2,

%T 2,8,2,9,6,9,2,10,7,11,3,11,5,7,0,7,5,11,4,12,6,9,0,8,6,9,0,8,0,0,0,2,

%U 2,10,2,12,8,11,2,13,9,17,6,16,9,12,2,13,10,18,7,20,11,16,3,15,11,17,5,15,7,9,0,9,7,15,5,17,11,16,4,17,12,19,6,18,9

%N Sum of coefficients > 1 in the Stern polynomial B(n,x): a(n) = A275812(A260443(n)).

%C Sum of terms larger than one on row n of table A125184.

%H Antti Karttunen, <a href="/A284272/b284272.txt">Table of n, a(n) for n = 0..8192</a>

%F a(n) = A275812(A260443(n)).

%F Other identities and observations. For all n >= 0:

%F A002487(n) = A284271(n) + a(n).

%F a(n) >= 2*A284264(n).

%t A003961[p_?PrimeQ] := A003961[p] = Prime[ PrimePi[p] + 1]; A003961[1] = 1; A003961[n_] := A003961[n] = Times @@ ( A003961[First[#]] ^ Last[#] & ) /@ FactorInteger[n] (* after _Jean-François Alcover_, Dec 01 2011 *); A260443[n_]:= If[n<2, n + 1, If[EvenQ[n], A003961[A260443[n/2]], A260443[(n - 1)/2] * A260443[(n + 1)/2]]]; A275812[n_]:= PrimeOmega[n] - If[n<2, 0,Count[Transpose[FactorInteger[n]][[2]], 1]]; Table[A275812[A260443[n]], {n, 0, 150}] (* _Indranil Ghosh_, Mar 28 2017 *)

%o (PARI)

%o A003961(n) = my(f = factor(n)); for (i=1, #f~, f[i, 1] = nextprime(f[i, 1]+1)); factorback(f); \\ From _Michel Marcus_

%o A260443(n) = if(n<2, n+1, if(n%2, A260443(n\2)*A260443(n\2+1), A003961(A260443(n\2)))); \\ Cf. _Charles R Greathouse IV_'s code for "ps" in A186891 and A277013.

%o A056169(n) = { my(f=factor(n)[, 2]); sum(i=1, #f, f[i]==1); }; \\ This function from _Charles R Greathouse IV_, Apr 29 2015

%o A275812(n) = bigomega(n) - A056169(n);

%o A284272(n) = A275812(A260443(n));

%o (Scheme) (define (A284272 n) (A275812 (A260443 n)))

%Y Cf. A002487, A125184, A260443, A275812, A284264, A284271, A284268 (odd bisection).

%K nonn

%O 0,6

%A _Antti Karttunen_, Mar 25 2017

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 4 15:36 EDT 2024. Contains 373099 sequences. (Running on oeis4.)