Changed your lettering to a to j:
Code:
a
====
bcd)aefg
hicj
====
hae My program (simplified):
Loop 10 variables a to j from 0 to 9 keeping the variables distinct
Keep a > 1, h = a-1, b > 0
u = 100*b + 10*c + d
v = 1000*a + 100*e + 10*f + g
w = 1000*h + 100*i + 10*c + j
x = 100*h + 10*a + e
If w = a * u and x = v - w then print a,u,v,w,x
Result: 7, 934, 7210, 6538, 672
I don't think anybody can show how to do this completely by hand,
as it's a bit like teaching how to dig a hole

But you never know: perhaps someone can...but won't be me!