Given a positive integer as input, your task is to output a truthy value if the number is divisible by the double of the sum of its digits, and a falsy value otherwise (OEIS A134516). In other words: (sum_of_digits)*2 | number Instead of truthy / falsy values for the true and false cases, you may instead specify any finite set of values for the true/false case, and their complement the other values. For a simple example, you may use 0 for the true case and all other numbers for the false case...| Recent Questions - Code Golf Stack Exchange
A redundantregular expression (regex) is defined here as a regex which has some amount of characters which can be removed while not affecting its functionality -- i.e. it matches the exact same set of strings. For example, code|codegolf is redundant since it can be reduced to code. You will be given a regular expression consisting only of lowercase letters and vertical bars (i.e. matching ^[a-z|]*$.) You should output a boolean (or equivalent) saying whether the regular expression is redundan...| Recent Questions - Code Golf Stack Exchange