Dear Muniru, Yes, it's easy:
gap> Sum([0..Length(b)-1], k -> b[Length(b)-k]*10^k); 123456 Best regards, --Philippe On 180329, "[Muniru Asiru] maas...@yahoo.com" <maas...@yahoo.com> wrote: > Dear Forum, Dear all, > > If I am given that > a:=123456;; b:=ListOfDigits(a); > Is it possible in GAP for me to recover a given b? > > Thanks. > > Dr. Muniru A. Asiru, Department of Mathematics & Statistics, The > Federal Polytechnic, P.M.B. 55, Bida, Niger State, Nigeria. OR Dr. > Muniru A. Asiru, P.O.Box. 294, Bida, Niger State, Nigeria. Email > Addresses: maas...@yahoo.com, remias...@yahoo.com, Mobile Phone > number: +2348034271010 > _______________________________________________ Forum mailing list > Forum@gap-system.org > https://mail.gap-system.org/mailman/listinfo/forum _______________________________________________ Forum mailing list Forum@gap-system.org https://mail.gap-system.org/mailman/listinfo/forum