Math, asked by monu5170ankit, 8 months ago

find number of ways to write the number 8, 4 ,3, 2 ,1​

Answers

Answered by yesminsemima809
1

Step-by-step explanation:

Given N, count the number of ways to express N as sum of 1, 3 and 4.

Examples:

Input : N = 4

Output : 4

Explanation: 1+1+1+1

1+3

3+1

4

Input : N = 5

Output : 6

Explanation: 1 + 1 + 1 + 1 + 1

1 + 4

4 + 1

1 + 1 + 3

1 + 3 + 1

3 + 1 + 1

plz follow me

and mark as brainlist

Similar questions