1,4

Table of n, a(n) for n=1..78.

a(n) = A129981(n-1) mod n.

0!! mod 1 = 1 mod 1 = 0.

(0!!+1!!) mod 2 = (1 + 1) mod 2 = 0.

(0!!+1!!+2!!) mod 3 = (1 + 1 + 2) mod 3 = 1.

A176788 := proc(n)

A129981(n-1) mod n ;

end proc: # R. J. Mathar, Jul 13 2012

Cf. A049782, A176787, A176789.

Sequence in context: A080159 A144299 A060514 * A238129 A212221 A193291

Adjacent sequences: A176785 A176786 A176787 * A176789 A176790 A176791

easy,nonn

Paolo P. Lava & Giorgio Balzarotti, Apr 26 2010

approved