{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
  "elmType": "div",
  "children": [
    {
      "elmType": "div",
      "style": {
        "display": "flex"
      },
      "children": [
        {
          "elmType": "div",
          "style": {
            "height": "36px",
            "width": "50px"
          },
          "attributes": {
            "class": "ms-fontSize-18 ms-bgColor-themeLighter ms-fontColor-themePrimary  ms-fontWeight-bold sp-field-borderAllSolid"
          },
          "children": [
            {
              "elmType": "div",
              "style": {
                "padding": "5px 5px",
                "text-align": "center",
                "cursor": "pointer"
              },
              "inlineEditField": "@currentField",
              "txtContent": "@currentField"
            }
          ]
        },
        {
          "elmType": "div",
          "style": {
            "margin": "0px 0px",
            "height": "40px",
            "width": "20px"
          },
          "attributes": {
            "class": "ms-fontSize-18 ms-bgColor-themeLighter ms-fontColor-themePrimary  ms-fontWeight-bold"
          },
          "children": [
            {
              "elmType": "div",
              "style": {
                "padding": "5px"
              },
              "txtContent": "="
            }
          ]
        },
        {
          "elmType": "div",
          "style": {
            "height": "40px",
            "width": "20px"
          },
          "attributes": {
            "class": "ms-fontSize-18 ms-bgColor-themeLighter ms-fontColor-themePrimary ms-fontWeight-bold"
          },
          "children": [
            {
              "elmType": "div",
              "style": {
                "padding": "5px 5px"
              },
              "txtContent": "=(floor(floor(floor(floor(floor(floor(floor(Number(@currentField)/2) /2)/2)/2)/2)/2)/2) % 2"
            }
          ]
        },
        {
          "elmType": "div",
          "style": {
            "height": "40px",
            "width": "20px"
          },
          "attributes": {
            "class": "ms-fontSize-18 ms-bgColor-themeLighter ms-fontColor-themePrimary ms-fontWeight-bold"
          },
          "children": [
            {
              "elmType": "div",
              "style": {
                "padding": "5px 5px"
              },
              "txtContent": "=(floor(floor(floor(floor(floor(floor(Number(@currentField)/2) /2)/2)/2)/2)/2) % 2"
            }
          ]
        },
        {
          "elmType": "div",
          "style": {
            "height": "40px",
            "width": "20px"
          },
          "attributes": {
            "class": "ms-fontSize-18 ms-bgColor-themeLighter ms-fontColor-themePrimary ms-fontWeight-bold"
          },
          "children": [
            {
              "elmType": "div",
              "style": {
                "padding": "5px 5px"
              },
              "txtContent": "=(floor(floor(floor(floor(floor(Number(@currentField)/2) /2)/2)/2)/2) % 2"
            }
          ]
        },
        {
          "elmType": "div",
          "style": {
            "height": "40px",
            "width": "20px"
          },
          "attributes": {
            "class": "ms-fontSize-18 ms-bgColor-themeLighter ms-fontColor-themePrimary ms-fontWeight-bold"
          },
          "children": [
            {
              "elmType": "div",
              "style": {
                "padding": "5px 5px"
              },
              "txtContent": "=(floor(floor(floor(floor(Number(@currentField)/2) /2)/2)/2) % 2"
            }
          ]
        },
        {
          "elmType": "div",
          "style": {
            "height": "40px",
            "width": "20px"
          },
          "attributes": {
            "class": "ms-fontSize-18 ms-bgColor-themeLighter ms-fontColor-themePrimary ms-fontWeight-bold"
          },
          "children": [
            {
              "elmType": "div",
              "style": {
                "padding": "5px 5px"
              },
              "txtContent": "=(floor(floor(floor(Number(@currentField)/2) /2)/2) % 2"
            }
          ]
        },
        {
          "elmType": "div",
          "style": {
            "height": "40px",
            "width": "20px"
          },
          "attributes": {
            "class": "ms-fontSize-18 ms-bgColor-themeLighter ms-fontColor-themePrimary ms-fontWeight-bold"
          },
          "children": [
            {
              "elmType": "div",
              "style": {
                "padding": "5px 5px"
              },
              "txtContent": "=(floor(floor(Number(@currentField)/2) /2) % 2"
            }
          ]
        },
        {
          "elmType": "div",
          "style": {
            "height": "40px",
            "width": "20px"
          },
          "attributes": {
            "class": "ms-fontSize-18 ms-bgColor-themeLighter ms-fontColor-themePrimary ms-fontWeight-bold"
          },
          "children": [
            {
              "elmType": "div",
              "style": {
                "padding": "5px 5px"
              },
              "txtContent": "=(floor(Number(@currentField)/2) % 2"
            }
          ]
        },
        {
          "elmType": "div",
          "style": {
            "height": "40px",
            "width": "20px"
          },
          "attributes": {
            "class": "ms-fontSize-18 ms-bgColor-themeLighter ms-fontColor-themePrimary ms-fontWeight-bold"
          },
          "children": [
            {
              "elmType": "div",
              "style": {
                "padding": "5px 5px"
              },
              "txtContent": "=Number(@currentField) % 2"
            }
          ]
        }
      ]
    }
  ]
}