# Arithmetic Operators

**URL:** <https://community.unix.com/t/arithmetic-operators/200853>\
**Category:** UNIX for Dummies Questions & Answers\
**Created:** [June 13, 2008, 12:55am UTC](https://community.unix.com/t/arithmetic-operators/200853 "2008-06-13T00:55:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![filda](https://community.unix.com/letter_avatar/filda/32/6_449c533f586939b6e5f246632a46421f.png) [@filda](https://community.unix.com/u/filda)\
**Post date:** [June 13, 2008, 12:55am UTC](https://community.unix.com/t/arithmetic-operators/200853/1 "2008-06-13T00:55:29Z")

</div>

Hello,

I have a list of 'inputs' and i want to convert those on the second list named 'Desired Outputs', but i don't know how to do it?

Inputs Desired Outputs  
1 2  
94 4  
276 8  
369 10  
464 12  
652 16  
744 18  
838 20  
931 22  
1111 26

Example, i know that the first number of the desired outputs will be 2, but from the second input '8' i have to make some arithmetics. I need to make a range between the current number less the before current number from the input list '94-1=93' this value will be divided into 50 '93/50=1.86=2' and for use this result i need to take it without decimals. Then, I'll use the before number from the desired output list which is in this case '2', finally '2+2=4', obtaining the next desired output, repeating this process to complete the desired output list.

Thks for helping me.

Filda
