Algorithms, Distributed System, Machine Learning
1 line in Ruby(2.0), 36B:
p (1..n=gets.to_i).reduce(:*)+2**n-n