text: Memory Deluge cares about the mana you actually paid to cast it, not its mana cost. If you cast Memory Deluge for {2}{U}{U}, you will look at four cards. If you cast it with flashback for {5}{U}{U}, you will look at seven cards. Any effects that increase or decrease the cost to cast it will also be taken into account.