While they’re mollusks, there’re not brainless. In fact, most of their brain is spread throughout their 8 arms. They like puzzles, make friends, and remember people. Sadly, they have short lives and can’t pass on their knowledge to their offspring because they die soon after reproducing.
Read this fascinating article: Deep Intellect.