title: Sequences Given Length Every Element Equal Twice Previous
signature: def sequences_given_length_every_element_equal_twice_previous(m, n):
source_py: def sequences_given_length_every_element_equal_twice_previous(m, n):
      if (m < n):
          return 0
      if (n == 0):
          return 1
      res = (sequences_given_length_every_element_equal_twice_previous((m - 1), n) + sequences_given_length_every_element_equal_twice_previous((m // 2), (n - 1)))
      return res
source_cpp: int sequences_given_length_every_element_equal_twice_previous(int m, int n) {
    if ( m < n ) return 0;
    if ( n == 0 ) return 1;
    return sequences_given_length_every_element_equal_twice_previous ( m - 1, n ) + sequences_given_length_every_element_equal_twice_previous ( m / 2, n - 1 );
  }
question_info.test_code: import array
  import bisect
  import collections
  import datetime
  import functools
  import heapq
  import itertools
  import math
  import queue
  import re
  import string
  import sys
  from typing import Any, Dict, List, Optional, Set
  
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  def validate_solution(actual, expected):
      return actual == expected
  
  def driver(m, n, expected):
      try:
          if validate_solution(PLACEHOLDER_FN_NAME(
              m, n),
              expected
          ):
              return "PASSED"
          return "FAILED"
      except Exception as exception_obj:
          return type(exception_obj).__name__
      
  if __name__ == "__main__":
      result = driver(38, 34, 0)
      print(f"TEST-0...{result}")
  
      result = driver(39, 29, 0)
      print(f"TEST-1...{result}")
  
      result = driver(24, 99, 0)
      print(f"TEST-2...{result}")
  
      result = driver(90, 23, 0)
      print(f"TEST-3...{result}")
  
      result = driver(44, 2, 484)
      print(f"TEST-4...{result}")
  
      result = driver(49, 70, 0)
      print(f"TEST-5...{result}")
  
      result = driver(58, 84, 0)
      print(f"TEST-6...{result}")
  
      result = driver(97, 34, 0)
      print(f"TEST-7...{result}")
  
      result = driver(99, 72, 0)
      print(f"TEST-8...{result}")
  
      result = driver(19, 67, 0)
      print(f"TEST-9...{result}")
  
      sys.exit(0)
question_info.test_case_ids: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
question_info.entry_fn_name: sequences_given_length_every_element_equal_twice_previous
question_info.test_list: [{"idx": 0, "outputs": 0, "inputs": {"m": 38, "n": 34}}, {"idx": 1, "outputs": 0, "inputs": {"m": 39, "n": 29}}, {"idx": 2, "outputs": 0, "inputs": {"m": 24, "n": 99}}, {"idx": 3, "outputs": 0, "inputs": {"m": 90, "n": 23}}, {"idx": 4, "outputs": 484, "inputs": {"m": 44, "n": 2}}, {"idx": 5, "outputs": 0, "inputs": {"m": 49, "n": 70}}, {"idx": 6, "outputs": 0, "inputs": {"m": 58, "n": 84}}, {"idx": 7, "outputs": 0, "inputs": {"m": 97, "n": 34}}, {"idx": 8, "outputs": 0, "inputs": {"m": 99, "n": 72}}, {"idx": 9, "outputs": 0, "inputs": {"m": 19, "n": 67}}]
question_info.entry_cls_name: Solution