number of 20 digit numbers where sum of no three consecutive digits is greater than 9?
How many 20 digit numbers n (without any leading zero) exist such that no three consecutive
digits of n have a sum greater than 9?
Solution in Python:
Written by Gefei
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Python
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#