OFFSET
1,3
EXAMPLE
a(4)=4 as A000040(4)=7 and there are no more representations than 7 = (3+5+13)/3 = (3+7+11)/3 = (5+5+11)/3 = (7+7+7)/3.
PROG
(Haskell)
a071703 = z a065091_list 0 . (* 3) . a000040 where
z _ 3 m = fromEnum (m == 0)
z ps'@(p:ps) i m = if m < p then 0 else z ps' (i+1) (m - p) + z ps i m
-- Reinhard Zumkeller, May 24 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Jun 03 2002
EXTENSIONS
Definition, initial term and example corrected. Thanks to Zak Seidov, who found the mistake. - Reinhard Zumkeller, May 24 2015
STATUS
approved