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!)
A309531 a(n) = Sum_{k=2..n} (-1)^k * A240236(n, k). 3

%I #21 Aug 06 2019 17:40:07

%S 1,1,0,0,2,2,-3,1,5,5,-2,-2,4,10,-6,-6,1,1,-8,0,10,10,-16,-8,4,18,7,7,

%T 13,13,-19,-7,9,19,-11,-11,7,21,-15,-15,-5,-5,-20,10,32,32,-36,-24,-1,

%U 17,0,0,18,32,-14,6,34,34,-23,-23,7,45,-29,-13,5,5,-16,8,30,30,-66

%N a(n) = Sum_{k=2..n} (-1)^k * A240236(n, k).

%H Seiichi Manyama, <a href="/A309531/b309531.txt">Table of n, a(n) for n = 2..1000</a>

%F a(n) = a(n-1) if and only if n is an odd prime.

%e a(2) = 1.

%e a(3) = 2 - 1 = 1.

%e a(4) = 1 - 2 + 1 = 0.

%e a(5) = 2 - 3 + 2 - 1 = 0.

%e a(6) = 2 - 2 + 3 - 2 + 1 = 2.

%o (PARI) {a(n) = sum(k=2, n, (-1)^k*sumdigits(n, k))}

%Y Cf. A000040, A043306, A065091, A240236.

%K sign,base

%O 2,5

%A _Seiichi Manyama_, Aug 06 2019

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 May 9 22:30 EDT 2024. Contains 372354 sequences. (Running on oeis4.)