This site is supported by donations to The OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A245710 Number of nonzero evil numbers <= n, see A001969. 8
 0, 0, 0, 1, 1, 2, 3, 3, 3, 4, 5, 5, 6, 6, 6, 7, 7, 8, 9, 9, 10, 10, 10, 11, 12, 12, 12, 13, 13, 14, 15, 15, 15, 16, 17, 17, 18, 18, 18, 19, 20, 20, 20, 21, 21, 22, 23, 23, 24, 24, 24, 25, 25, 26, 27, 27, 27, 28, 29, 29, 30, 30, 30, 31, 31, 32, 33, 33, 34, 34, 34, 35, 36 (list; graph; refs; listen; history; text; internal format)
 OFFSET 0,6 LINKS FORMULA a(0) = 0, and for n >= 1, a(n) = A010059(n) + a(n-1). [Partial sums of A010059, after ignoring the first one at zero]. a(n) = n  - A115384(n). a(n) = A159481(n)-1. PROG (Scheme, two alternative implementations) ;; With memoizing definec-macro: (definec (A245710 n) (if (zero? n) n (+ (A010059 n) (A245710 (- n 1))))) (define (A245710 n) (- n (A115384 n))) CROSSREFS One less than A159481. Cf. A001969, A010059, A115384, A246159, A246162. Sequence in context: A084767 A137580 A196369 * A137512 A157943 A267098 Adjacent sequences:  A245707 A245708 A245709 * A245711 A245712 A245713 KEYWORD nonn AUTHOR Antti Karttunen, Aug 18 2014 STATUS approved

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

Last modified October 14 16:29 EDT 2019. Contains 328022 sequences. (Running on oeis4.)