Post History
Ruby, 63 bytes ->n{(2..16).max_by{|x|n.digits(x).sum{45088003.digits(3)[_1]}}} Attempt This Online!
Answer
#1: Initial revision
# [Ruby](https://www.ruby-lang.org/), 63 bytes ```ruby ->n{(2..16).max_by{|x|n.digits(x).sum{45088003.digits(3)[_1]}}} ```` [Attempt This Online!](https://ato.pxeger.com/run?1=m72kqDSpcsGiNNulpSVpuhY37XXt8qo1jPT0DM009XITK-KTKqtrKmry9FIy0zNLijUqNPWKS3OrTUwNLCwMDIxhwsaa0fGGsbW1tRBjVhQopEUbGhnHQrgLFkBoAA)