If n can be written in the form r^i-s^j (see A074981), where r,s,i,j are integers with r>0, s>0, i>1, j>1 choose the representation with smallest r^i (in case of ties, minimize i and j); or if n is not of this form set r=s=i=j=0; sequence gives values of r.

A075788

If n can be written in the form r^i-s^j (see A074981), where r,s,i,j are integers with r>0, s>0, i>1, j>1 choose the representation with smallest r^i (in case of ties, minimize i and j); or if n is not of this form set r=s=i=j=0; sequence gives values of r.

Terms

    a(0) =3a(1) =3a(2) =2a(3) =2a(4) =3a(5) =0a(6) =4a(7) =4a(8) =5a(9) =13a(10) =3a(11) =4a(12) =7a(13) =0a(14) =8a(15) =5a(16) =5a(17) =3a(18) =3a(19) =6a(20) =5a(21) =7a(22) =3a(23) =2a(24) =5a(25) =35a(26) =6a(27) =2a(28) =15a(29) =83

External references