Question: Let Str be the set of alphanumeric strings and * let N be the natural numbers. Define a function d:StrN by d(s)= the sum of
Let Str be the set of alphanumeric strings and * let N be the natural numbers. Define a function d:StrN by d(s)= the sum of all digits in s. For example, d("123")=6, d( "10SNE1" )=2,d( "foobar") =0, and d("10+23=33")=12. Write a short proof that d is onto
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
