摘要:本文将数字换位差值公式实用化,并提出三种算法,实用而方便,并以实例介绍了数字换位差值速算法的应用。
Abstract: In this paper, the digital transposition difference formula is put into practical use, and three algorithms are proposed, which are practical and convenient. The application of digital transposition difference rate algorithm is introduced by an example.
关键词:三种算法;应用实例;数字换位差值公式
Key words: three algorithms;application examples;digital transposition difference formula
中图分类号:O156 文献标识码:A 文章编号:1006-4311(2017)23-0139-02
0 引言
本文以实例详尽地介绍了数字换位差值速算法的应用技巧。
1 先熟悉一下《数字换位差值速算法》的公式
设数A为一个多位数 A=x…x a x…x b x…x,
将a与b两个数字换位后得 B=x…x b x…x a x…x
则有数字换位差值公式:
A-B=x…x a x…x b x…x-x…x b x…x a x…x
=10n[(10m-1)(a-b)] (1)
A-B=x…x a x…x b x…x-x…x b x…x a x…x
=10n[10m(a-b)-(a-b)](2)
注:①为计算方便、直观,现将数A、数B中换位的两个数字直接用a、b表示,称为换位数,其余数位上的数字用x表示。
a,b,x的取值范围为1,2,3,4,5,6,7,8,9,0
但a≠b(因a=b时,换位无意义)。
②不同数位上的x一般不相同。
③在数A中,a为左换位数,b为右换位数;在数B中,b为左换位数,a为右换位数。
现定:左换位数比右换位数高出的位数为m;右换位数比个位数高出的位数为n。
④m为正整数。n为整数。
⑤当m=1时,宜选用公式(1)
当m>1时,宜选用公式(2)
2 《数字换位差值速算法》的应用
2.1 当只有a、b时,(m=1,n=0)
A-B=9(a-b)(3)
算法一:a、b之差乘以9
例1、爷爷71岁,孙子17岁,请问爷爷比孙子大多少岁?
心算:六九五十四 (即7-1=6、6*9=54)
答:大54岁。
例2、甲38岁,乙83岁,请问甲乙年龄差是多少?
心算:五九四十五 (即8-3=5 5*9=45)
答:甲比乙小45岁。
例3、父亲的体重为81千克,儿子的体重为18千克,二人体重差多少千克?
心算:七九六十三 答:差63千克。
2.2 当m>1,n≥0时
先请看例题
如:3 0 0 0 0 0-3=(3-1)9 9 9 9(10-3)=2 9 9 9 9 7
8 0 0 0 0 0-8=(8-1)9 9 9 9(10-8)=7 9 9 9 9 2
所以
A-B=10n[10m(a-b)-(a-b)]
= 10n{(a-b-1) 9 9…9 9 [10-(a-b)]}
= 10n{(a-b-1) 9 9…9 9 [9-(a-b-1)]}(4)
(m-1 個9)
算法二:(m>1,n≥0)
先写(a-b-1),再写(m-1)个9,再写[9-(a-b-1)],最后乘以10n
例1、(1)将987654321中的8与3换位后(即成为937654821),请问两数的差是多少?
心算:写4,即(8-3-1)、写四个9、写5即,(9-4)、写00
答:49999500[速算时直接写出差值,心算部分不写。下同]
同理:(2)5592636128-5522636198=?
心算:写6,即(9-2-1)、写五个9、写3,即(9-6)、写0
答:69999930……p>