To generate armstrong number