首页 > 其他分享 >PROPERTIES OF SQUARE NUMBERS

PROPERTIES OF SQUARE NUMBERS

时间:2023-07-14 13:55:29浏览次数:38  
标签:SQUARE number its square place numbers Property PROPERTIES NUMBERS

 

When a number is multiplied by itself, the resulting number is called as a square number. 

For example, when we multiply 5 by 5, we get 5= 25. Here, 25 is a square number.

In geometry, the area of a square is the finest example of a square number. Area of a square = Side × Side = Side2, because all the sides of a square are equal. This means the area of a square is always a square number.

 

Square numbers are always positive and they can never be negative because when a negative number is multiplied by the same negative number, it results in a positive number.

For example, (-7)2 = -7 x -7 = 49 (two negative signs multiplied by each other result in a positive sign). When we multiply -7 by -7, the result is 49 and it is a positive square number. Here are some examples of square numbers.

2 x 2 = 4

-8 x -8 = 64

15 x 15 = 225

We observe the following properties through the patterns of square numbers.

Property 1 : 

In square numbers, the digits at the unit’s place are always 0, 1, 4, 5, 6 or 9. The numbers having 2, 3, 7 or 8 at its units' place are not perfect square numbers.

Property 2 :

If a number has 1 or 9 in the unit's place then its square ends in 1.

Property 3 :

If a number has 2 or 8 in the unit's place then its square ends in 4.

Property 4 :

If a number has 3 or 7 in the unit's place then its square ends in 9.

Property 5 :

If a number has 4 or 6 in the unit's place then its square ends in 6.

Property 6 :

If a number has 5 in the unit's place then its square ends in 5.

Property 7 :

Consider the following square numbers :

From the square numbers given above, we infer that

Property 8 :

Consider the following square numbers :

Therefore, 100 is a perfect square and 81000 is not a perfect square.

Property 9 :

Square of even numbers is always even. 

It has been illustrated in the table given below.

Property 10 :

Square of odd numbers is always odd. 

It has been illustrated in the table given below.

From properties 9 and 10, we infer that

Some Interesting Patterns of Square Numbers

Addition of consecutive odd numbers :

The above figure illustrates the result that the sum of the first n natural odd numbers is n2.

And, square of a rational number a/b is given by

Kaprekar Numbers

     

标签:SQUARE,number,its,square,place,numbers,Property,PROPERTIES,NUMBERS
From: https://www.cnblogs.com/chen-ao666/p/17553485.html

相关文章

  • spring bean 的属性为 java.util.Properties 时如何初始化该属性
       publicclassFooBean{privatejava.util.Propertiesattr;publicjava.util.PropertiesgetAttr(){returnattr;}publicvoidsetAttr(java.util.Propertiesattr){this.attr=attr;}} <beanid=......
  • @ConfigurationProperties 前缀注入属性
     importjava.util.LinkedHashMap;importjava.util.Map;importorg.springframework.boot.context.properties.ConfigurationProperties;importorg.springframework.context.annotation.Configuration;@ConfigurationProperties(prefix="zoo")@Configura......
  • spring 静态变量方式加载properties 文件(支持profile)
     foo-test.properties(测试环境)foo-pro.properties(生产环境)需要根据spring.profiles.active切换 importjava.io.IOException;importjava.util.Properties;importorg.springframework.beans.factory.annotation.Autowired;importorg.springframework.beans.facto......
  • 解决从springboot配置文件application.properties获取中文乱码
    这里因为自带的iso编码格式需要进行如下操作 新增两个文件重写packagecom.java.file.config;importorg.springframework.boot.origin.Origin;importorg.springframework.boot.origin.OriginTrackedValue;importorg.springframework.boot.origin.TextResourceOrigin;......
  • 使用ResourceBundle国际化资源文件读取properties详解
    eg:publicclassCommons{//工具类创建常量publicstaticStringEMAIL_ACCOUNT;publicstaticStringEMAIL_PASSWORD;//静态区域块读取propertiesstatic{ResourceBundleresource=ResourceBundle.getBundle("init");EMAIL_ACCO......
  • [AGC036F] Square Constraints
    aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa每个数能取的范围是一段区间\([l_i,r_i]\),其中\(l_i\)单调不增,\(r_i\)单调不增。画个图(\(n=10\)):圆环和矩形的交即为合法点。容易看出\(l_n\)到\(l_{2n-1}\)都是0。本质上是元素有上下界的排列计数,考虑不管下界......
  • SpringBoot 项目不加载 application.properties 配置文件
    yml或者properties文件没有被扫描到,需要在pom文件中<build></build>添加如下内容来保证文件都能正常被扫描到并且加载成功。<resources><resource><directory>src/main/java</directory><includes><include>**/*.yml</include......
  • spring的工具类BeanUtils.copyProperties 非基本数据类型时的坑
    复现前准备三个类,Student、Source、Target。Source和Target里面包含一个相同的非基本类型的字段(如下面示例中的stu字段)publicclassStudent{privateStringname;publicStudent(Stringname){this.name=name;}publicStringgetName(){......
  • log4j.properties内容解析-------bydobject
    #ThisistheconfiguringforloggingdisplayedintheApplicationServer // 这是显示在应用程序服务器中的日志记录配置log4j.rootCategory=debug,stdout,logfile//stdout(自定义appenderName)/logfile(自定义appenderName) ---appenderName就是指......
  • echarts 在使用dataZoom时报错,Cannot read properties of undefined (reading 'type')
    今天我再vue中使用柱状图拖动时,一直报错Cannotreadpropertiesofundefined(reading'type')。原因如下,我使用了myChart来接收数据,当myChart使用的是vue的ref或者reactive来命名的变量,如果这样子命名就会报上述错误。myChart=echarts.init(statistical......