48 #ifndef LIB_3NP1_MOD__LIB_3NP1_MOD__H_ 49 #define LIB_3NP1_MOD__LIB_3NP1_MOD__H_ 92 C_mask(value_type n, value_type mask);
140 F_mask(value_type n, value_type mask);
184 std::vector<value_type>
214 T_mask(value_type n, value_type mask);
221 #endif // LIB_3NP1_MOD__LIB_3NP1_MOD_H_ value_type m2(value_type n)
function.
value_type C_mask(value_type n, value_type mask)
Return if n even, if n odd.
value_type F(value_type n)
F odd function.
std::vector< value_type > start_path_mask(value_type n, operation_mask_type operation_mask, value_type mask)
Given operation, return the start of path from n to the first value < n or to the first repeated valu...
std::set< value_type > search_mask_exceptions_32()
Calculate and return all null and odd exceptions for the 3n + 1 problem with modulo ...
value_type F_mask(value_type n, value_type mask)
Return if n even if n odd which k as large as possible = .
value_type(* operation_type)(value_type)
value_type(* operation_mask_type)(value_type, value_type)
value_type C(value_type n)
Collatz C function.
std::set< value_type > search_mask_exceptions_64()
Calculate and return all null and odd exceptions for the 3n + 1 problem with modulo ...
std::set< value_type > search_mask_exceptions(value_type mask)
Calculate and return all null and odd exceptions for the 3n + 1 problem with modulo (mask + 1)...
value_type T(value_type n)
Terras T function.
value_type T_mask(value_type n, value_type mask)
Return if n even if n odd.